Created
July 26, 2024 19:29
My Git alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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