Practical Git via GitExtensions
  • Git - a Distributed System
  • Bare Minimal Configurations
  • Creating a New Branch
  • Making a Commit
    • Adding only a portion of a file
    • Commit Message
    • Cherry-pick
    • Revert
  • Rewriting History
    • Rewording the Last Commit
    • Rewording Commit Message in Middle
    • Editing the Last Commit
    • Squashing Last Few Commits
    • Squashing Commits in Middle
    • Spliting Commit into Multiple
    • Removing a Commit
    • Pushing after Rewriting History
  • Lost and Found
  • Comparing Commits or Branches
  • Checking out a Branch into Another Folder
  • Blaming History
    • Blame
    • Bisect
  • Disabling Auto Tracking Branch
  • Line Ending
  • Ignore Unwanted Files
Powered by GitBook
On this page

Was this helpful?

Disabling Auto Tracking Branch

PreviousBisectNextLine Ending

Last updated 6 years ago

Was this helpful?

With GitExtensions, when pushing a branch the target branch name is usually defaulted to be the same as the branch being pushed. But with tracking branch enabled, the target branch might be the old branch if it was renamed from another one and as a result we may push the changes to the old branch.

Run the following command to disable Auto Tracking Branch:

git config --global branch.autosetupmerge false

and edit the file in you .git/config to remove the trackings.

for example, deleting the merge = refs/heads/master for awesome_branch will stop the tracking.

[branch "awesome_branch"]
    remote = origin
    merge = refs/heads/master