Created
September 25, 2024 09:22
-
-
Save blacksmithop/2f8c7c850096d6a4315716f0de970a55 to your computer and use it in GitHub Desktop.
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
co = checkout | |
cob = checkout -b | |
coo = !git fetch && git checkout | |
br = branch | |
brd = branch -d | |
brd = branch -D | |
merged = branch --merged | |
st = status | |
aa = add -A . | |
cm = commit -m | |
aacm = !git add -A . && git commit | |
aacm = !git add -A . && git commit -m | |
cp = cherry-pick | |
amend = commit --amend -m | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
change-commits = '!'f() { VAR=\$1; OLD=\$2; NEW=\$3; shift 3; git filter-branch --env-filter "if [[ \"\$\`echo \$VAR\`\" = '\$OLD' ]]; then export \$VAR='\$NEW'; fi" \$@; }; f | |
p = 'push' | |
rv = remote -v | |
tags = tag --list | |
clear = remote update origin --prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment