Skip to content

Instantly share code, notes, and snippets.

@re5et
Created January 16, 2013 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save re5et/4550500 to your computer and use it in GitHub Desktop.
Save re5et/4550500 to your computer and use it in GitHub Desktop.
Make magit not alter the branch name you are checking out when creating a local tracking branch.
;; M-x customize-variable RET magit-default-tracking-name-function RET
;; Set "other" to magit-tracking-name-unfucked-with
(defun magit-tracking-name-unfucked-with (remote branch)
branch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment