Edit your .gitconfig
file in your $HOME
directory for some serious time saving git shortcuts
[code language=”bash”]
[core]
excludesfile = /Users/moses.mansaray/.gitignore_global
autocrlf = input
[user]
name = moses.mansaray
email = moses.mansaray@domain.com
[push]
default = simple
[alias]
co = checkout
cob = checkout -b
cod = checkout develop
ci = commit
st = status
save = !git add -A && git commit -m
br = branch
rhhard-1 = reset –hard HEAD~1
rhhard-o = reset head –hard
hist = log –pretty=format:\"%h %ad | %s%d [%an]\" –graph –date=short
type = cat-file -t
dump = cat-file -p
llf = log –pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" –decorate –numstat
lld = log –pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" –decorate –date=short
amend = commit -a –amend
[/code]
Leave a Reply