Skip to content

Instantly share code, notes, and snippets.

Last active August 2, 2022 07:25
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Git config alias
rc = rebase --continue
ft = fetch
ftp = fetch --tags --prune
pr = pull --rebase
co = checkout
wd = diff --word-diff
br = branch
so = remote show origin
kc = commit
st = status
graph = log --graph --pretty='format:%h %Cgreen%an%Creset | %s %Cred%d%Creset'
conf = config
sh = show
cm = checkout master
ci = commit -a
lg = log --graph --pretty=oneline --decorate --date=short --abbrev-commit --branches
ad = add
fo = fetch origin
ro = rebase origin
pl = pull
ps = "!git push \"$(git rev-parse --abbrev-ref HEAD)\""
psf = push --force $(git rev-parse --abbrev-ref HEAD)
su = !git branch -u origin $(git rev-parse --abbrev-ref HEAD)
pb = !git push origin $(git rev-parse --abbrev-ref HEAD)
pbf = !git push --force origin $(git rev-parse --abbrev-ref HEAD)
up = !git pull origin $(git rev-parse --abbrev-ref HEAD)
pbu = !git push n $(git rev-parse --abbrev-ref HEAD)
upu = !git pull n $(git rev-parse --abbrev-ref HEAD)
pbfu = !git push --force n $(git rev-parse --abbrev-ref HEAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment