Making Git retain different section content between branches

后端 未结 4 462
难免孤独
难免孤独 2020-11-29 13:54

I\'m developing a Userscript that my employers have asked me to begin to manage via Git.

Right now, I have a stable file and a beta file, so that everyone in the org

4条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 14:17

    Delete the @downloadURL line from all files.

    From the @downloadURL documentation, when the line is omitted, Greasemonkey will check the URL that the script was originally loaded from, for updates. The release users will update from the release location and the beta users will update from the beta location.

    If a users wants to switch from one branch to another, he just deletes the script first and then loads from the appropriate branch.

    Likewise, the scripts should not have an @updateURL line either.

提交回复
热议问题