Skip to content

Instantly share code, notes, and snippets.

@kyle-johnson
Last active December 15, 2017 03:52
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 kyle-johnson/1b215850141a73861b9e901fba65dff0 to your computer and use it in GitHub Desktop.
Save kyle-johnson/1b215850141a73861b9e901fba65dff0 to your computer and use it in GitHub Desktop.
[user]
# nicer commit messages :-)
name = Kyle Johnson
email = kyle@[xyz].com
[core]
# this is really just for simple commit statements, so pick something console-based, nano is great
editor = nano
[merge]
tool = p4mergetool
[mergetool]
# to keep repos clean
keepBackup = false
[color]
diff = always
[push]
default = tracking
[alias]
unstage = reset HEAD --
undo = reset --soft HEAD^
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
df = diff
[diff]
submodule = log
[status]
submodulesummary = 1
[mergetool "p4mergetool"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge $PWD/$BASE $PWD/$REMOTE $PWD/$LOCAL $PWD/$MERGED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment