Last active
August 2, 2022 07:25
-
-
Save n0ts/1a900d6fa83d51a3cf7c153986b4b9fe to your computer and use it in GitHub Desktop.
Git config alias
This file contains 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
[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