Skip to content

Commit

Permalink
.gitconfig: Make sure go never overrides branches
Browse files Browse the repository at this point in the history
Closes #357. Thanks to @yukideluxe!
  • Loading branch information
thanpolas authored and mathiasbynens committed May 7, 2014
1 parent a231822 commit 45d8e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitconfig
Expand Up @@ -14,7 +14,7 @@
# Commit all changes
ca = !git add -A && git commit -av
# Switch to a branch, creating it if necessary
go = checkout -B
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
Expand Down

0 comments on commit 45d8e0d

Please sign in to comment.