Created
June 8, 2021 12:17
-
-
Save adiroiban/d5e3ee5c59cee18aff6a3b889a12402e to your computer and use it in GitHub Desktop.
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
13:15 $ git alias | |
ae = !/opt/sublime_text/sublime_text ~/.gitconfig | |
b = branch | |
st = status -s | |
ci = commit -a | |
ca = commit -a --amend --no-edit | |
push = push --tags | |
db = branch -d | |
dr = push origin --delete | |
rb = branch -m | |
co = checkout | |
sb = checkout | |
cb = checkout -b | |
gb = !sh -c 'git checkout -b $1 origin/$1' - | |
di = diff | |
dd = difftool --dir-diff | |
ds = diff --stat | |
fp = push --force | |
info = remote show origin | |
undo = reset --soft HEAD~ | |
clear = checkout -- . | |
top = log --pretty=format:'%h %an %ad %s' --date=short -10 | |
pick = cherry-pick | |
difflog = log --graph --left-right --cherry-pick --oneline master.. | |
alias = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | |
bn = !git for-each-ref --format='%(refname:short)' $(git symbolic-ref HEAD) | |
publish = !BRANCH_NAME=$(git bn) && git push --set-upstream origin $BRANCH_NAME | |
m = merge --no-commit --squash | |
lm = log --merges --first-parent --pretty=format:'%h %an %ad %s' --date=short | |
conflicts = !git ls-files -u | cut -f 2 | sort -u | |
lc = log --name-status --oneline master..HEAD | |
commiters = shortlog -s | |
download = archive --format=tar | |
conflicts = !git ls-files -u | cut -f 2 | sort -u | |
sync = pull --rebase . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment