Skip to content

Instantly share code, notes, and snippets.

@zevolution
Last active September 23, 2020 02:38
Show Gist options
  • Save zevolution/122d7e468d770f0075f136fdf2f9bb8b to your computer and use it in GitHub Desktop.
Save zevolution/122d7e468d770f0075f136fdf2f9bb8b to your computer and use it in GitHub Desktop.
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = José Lucas
email =
[merge]
tool = bcompare
[mergetool "bcompare"]
trustExitCode = true
[diff]
tool = bompare
[mergetool]
prompt = false
[alias]
ci = commit
cim = commit -m
co = checkout
com = checkout master
cod = checkout development
cob = checkout -b
st = status -sb
sf = show --name-only
pl = pull
plm = pull origin master
pld = pull origin development
ps = push
psm = push origin master
psd = push origin development
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %C(bold)(%cd)%Creset %Cgreen<%an>%Creset %s' --max-count=30 --date=short
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
unstage = reset HEAD --
undo = checkout --
rollback = reset --soft HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment