Skip to content

Instantly share code, notes, and snippets.

@ncoquelet
Created July 26, 2024 19:29
Show Gist options
  • Save ncoquelet/6404647298b0bf772401e5e2c0b882b4 to your computer and use it in GitHub Desktop.
Save ncoquelet/6404647298b0bf772401e5e2c0b882b4 to your computer and use it in GitHub Desktop.
My Git alias
[init]
defaultBranch = main
[alias]
st = status
cm = commit -m
co = checkout
br = branch
brd = branch -d
cob = checkout -b
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
cam = commit -am
ca = commit --amend --no-edit
a = add
au = add -u
aa = add -A
d = diff
pl = pull
ps = push
c = commit
sh = stash
shp = stash pop
shl = stash list
shc = stash clear
lgn = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --author=nicolas
m = merge
psu = push -u origin
brrd = push origin --delete
pbr = remote prune origin
dd = difftool --dir-diff
[pull]
rebase = false
[core]
editor = vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment