When I “git push” git now says “Create pull request for …”. Why?

后端 未结 3 1689
闹比i
闹比i 2020-12-13 12:04

I am making changes to a project in a branch that, so far, is known to no one else but me. However, starting recently, when I git push to this project, I now r

3条回答
  •  囚心锁ツ
    2020-12-13 13:00

    I think TimWolla is right, but I just wanted to add this post from Atlassian, which clarifies Atlassian's policy:

    In Stash 3.3, a feature was added to display a message to users in the terminal with a link to create a pull request when a new branch or branch with no pull requests is pushed. This guide will explain how to turn this feature off.

    remote:
    remote: Create pull request for ABC-123-fix-bug:
    remote: http://localhost:7990/projects/PROJ/repos/REPO/compare/commits?sourceBranch=refs/heads/ABC-123-fix-bug
    remote:
    

    Currently this feature can only be turned on or off globally. [...]

    To turn this feature off, do the following:

    1. Navigate to the 'Manage add-ons' section of the Stash admin screens
    2. Select 'System' from the dropdown
    3. Search for 'Bundled Hooks' expand it and its modules
    4. Find the 'print-branch-links-hook' module, click Disable

提交回复
热议问题