Aliases
|
|
git |
|
|
git add |
|
|
git add --all |
|
|
git add --patch |
|
|
git add --update |
|
|
git add --verbose |
|
|
git apply |
|
|
git apply --3way |
|
|
git branch |
|
|
git branch -a |
|
|
git branch -d |
|
|
git branch --no-color --merged | grep -vE "^([+]|\s($(git_main_branch)|$(git_develop_branch))\s*$)" | xargs git branch -d 2>/dev/null |
|
|
git branch -D |
|
|
git blame -b -w |
|
|
git branch --no-merged |
|
|
git branch --remote |
|
|
git bisect |
|
|
git bisect bad |
|
|
git bisect good |
|
|
git bisect reset |
|
|
git bisect start |
|
|
git commit -v |
|
|
git commit -v --amend |
|
|
git commit -v --no-edit --amend |
|
|
git commit -v -a |
|
|
git commit -v -a --amend |
|
|
git commit -v -a --no-edit --amend |
|
|
git commit -v -a -s --no-edit --amend |
|
|
git commit -a -m |
|
|
git commit -a -s |
|
|
git commit -a -s -m |
|
|
git commit -s -m |
|
|
git checkout -b |
|
|
git config --list |
|
|
git clone --recurse-submodules |
|
|
git clone --recurse-submodules "$@" && cd "$(basename $_ .git)" |
|
|
git clean -id |
|
|
git reset --hard && git clean -dffx |
|
|
git checkout $(git_main_branch) |
|
|
git checkout $(git_develop_branch) |
|
|
git commit -m |
|
|
git checkout |
|
|
git checkout --recurse-submodules |
|
|
git shortlog -sn |
|
|
git cherry-pick |
|
|
git cherry-pick --abort |
|
|
git cherry-pick --continue |
|
|
git commit -S |
|
|
git diff |
|
|
git diff --cached |
|
|
git diff --cached --word-diff |
|
|
git describe --tags $(git rev-list --tags --max-count=1) |
|
|
git diff --staged |
|
|
git diff-tree --no-commit-id --name-only -r |
|
|
git diff $@ ":(exclude)package-lock.json" ":(exclude)*.lock" |
|
|
git diff @{upstream} |
|
|
git diff -w $@ | view - |
|
|
git diff --word-diff |
|
|
git fetch |
|
|
git fetch --all --prune |
|
|
git ls-files | grep |
|
|
git fetch origin |
|
|
git gui citool |
|
|
git gui citool --amend |
|
|
git push --force origin $(current_branch) |
|
|
git push --force-with-lease origin $(current_branch) |
|
|
git pull origin $(current_branch) |
|
|
git push origin $(current_branch) |
|
|
ggl && ggp |
|
|
git pull origin "$(git_current_branch)" |
|
|
ggu |
|
|
git push origin "$(git_current_branch)" |
|
|
git branch --set-upstream-to=origin/$(git_current_branch) |
|
|
git pull --rebase origin $(current_branch) |
|
|
git push --set-upstream origin $(git_current_branch) |
|
|
git help |
|
|
git update-index --assume-unchanged |
|
|
git ls-files -v | grep "^[[:lower:]]" |
|
|
git svn dcommit && git push github $(git_main_branch):svntrunk |
|
|
gitk --all --branches &! |
|
|
gitk --all $(git log -g --pretty=%h) &! |
|
|
git pull |
|
|
git log --stat |
|
|
git log --stat -p |
|
|
git log --graph |
|
|
git log --graph --decorate --all |
|
|
git log --graph --max-count=10 |
|
|
git log --oneline --decorate |
|
|
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' |
|
|
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat |
|
|
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' |
|
|
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short |
|
|
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all |
|
|
git log --oneline --decorate --graph |
|
|
git log --oneline --decorate --graph --all |
|
|
git log --pretty=<format> |
|
|
git merge |
|
|
git merge origin/$(git_main_branch) |
|
|
git mergetool --no-prompt |
|
|
git mergetool --no-prompt --tool=vimdiff |
|
|
git merge upstream/$(git_main_branch) |
|
|
git merge --abort |
|
|
git push |
|
|
git push --dry-run |
|
|
git push --force-with-lease |
|
|
git push --force |
|
|
git push origin --all && git push origin --tags |
|
|
git pull --rebase |
|
|
git push upstream |
|
|
git push -v |
|
|
git remote |
|
|
git remote add |
|
|
git rebase |
|
|
git rebase --abort |
|
|
git rebase --continue |
|
|
git rebase $(git_develop_branch) |
|
|
git rebase -i |
|
|
git rebase $(git_main_branch) |
|
|
git rebase origin/$(git_main_branch) |
|
|
git rebase --onto |
|
|
git rebase --skip |
|
|
git revert |
|
|
git reset |
|
|
git reset --hard |
|
|
git reset origin/$(git_current_branch) --hard |
|
|
git rm |
|
|
git rm --cached |
|
|
git remote rename |
|
|
git remote remove |
|
|
git restore |
|
|
git remote set-url |
|
|
git restore --source |
|
|
git restore --staged |
|
|
cd "$(git rev-parse --show-toplevel || echo .)" |
|
|
git reset -- |
|
|
git remote update |
|
|
git remote -v |
|
|
git status -sb |
|
|
git svn dcommit |
|
|
git show |
|
|
git submodule init |
|
|
git show --pretty=short --show-signature |
|
|
git svn rebase |
|
|
git status -s |
|
|
git status |
|
|
git stash push |
|
|
git stash save |
|
|
git stash apply |
|
|
git stash clear |
|
|
git stash drop |
|
|
git stash list |
|
|
git stash pop |
|
|
git stash show --text |
|
|
git stash --include-untracked |
|
|
git stash --all |
|
|
git submodule update |
|
|
git switch |
|
|
git switch -c |
|
|
git switch $(git_main_branch) |
|
|
git switch $(git_develop_branch) |
|
|
git tag -s |
|
|
git tag | sort -V |
|
|
gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl |
|
|
git update-index --no-assume-unchanged |
|
|
git log -n 1 | grep -q -c "--wip--" && git reset HEAD~1 |
|
|
git pull --rebase |
|
|
git pull --rebase -v |
|
|
git pull --rebase --autostash |
|
|
git pull --rebase --autostash -v |
|
|
git pull --rebase origin $(git_main_branch) |
|
|
git pull --rebase=interactive origin $(git_main_branch) |
|
|
git pull upstream $(git_main_branch) |
|
|
git pull upstream $(git_current_branch) |
|
|
git whatchanged -p --abbrev-commit --pretty=medium |
|
|
git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]" |
|
|
git am |
|
|
git am --continue |
|
|
git am --skip |
|
|
git am --abort |
|
|
git am --show-current-patch |
Notes
Main branch preference
Following the recent push for removing racially-charged words from our technical vocabulary, the git plugin favors using a branch name other than master. In this case, we favor the shorter, neutral and descriptive term main. This means that any aliases and functions that previously used master, will use main if that branch exists. We do this via the function git_main_branch.
