Skip to content

Instantly share code, notes, and snippets.

@joaopgrassi
Last active June 6, 2019 18:36
Show Gist options
  • Save joaopgrassi/16684943ccd568aaaa1aea1bbe3a83e2 to your computer and use it in GitHub Desktop.
Save joaopgrassi/16684943ccd568aaaa1aea1bbe3a83e2 to your computer and use it in GitHub Desktop.
My custom git shortcuts and merge tool settings.
[alias]
co = checkout
cob = checkout -b
cm = !git add -A && git commit -m
b = branch
pu = push -u origin HEAD
st = status
[merge]
tool = p4merge
[mergetool "p4merge"]
path = C:/Program Files/Perforce/p4merge.exe
cmd = 'C:/Program Files/Perforce/p4merge.exe' $BASE $LOCAL $REMOTE $MERGED
[diff]
tool = p4merge
[difftool "p4merge"]
path = C:/Program Files/Perforce/p4merge.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment