| cd "$(git rev-parse --show-toplevel || echo .)"
|
| |
| |
| |
| |
| |
| |
| |
| |
| git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign --message "--wip-- [skip ci]"
|
| |
| |
| |
| git am --show-current-patch
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| git branch --delete --force
|
| LANG=C git branch --no-color -vv | grep ": gone\]" | awk '"'"'{print $1}'"'"' | xargs git branch -d
|
| LANG=C git branch --no-color -vv | grep ": gone\]" | awk '"'"'{print $1}'"'"' | xargs git branch -D
|
| |
| |
| |
| git branch --set-upstream-to=origin/$(git_current_branch)
|
| LANG=C git branch -vv | grep ": gone\]"
|
| |
| git checkout --recurse-submodules
|
| |
| |
| git checkout $(git_develop_branch)
|
| git checkout $(git_main_branch)
|
| |
| |
| git cherry-pick --continue
|
| git clean --interactive -d
|
| git clone --recurse-submodules
|
| git clone --recurse-submodules "$@" && cd "$(basename $\_ .git)"
|
| git commit --all --message
|
| git commit --all --signoff
|
| git commit --all --signoff --message
|
| |
| git commit --signoff --message
|
| |
| git commit --verbose --all
|
| git commit --verbose --all --amend
|
| git commit --verbose --all --no-edit --amend
|
| git commit --verbose --all --signoff --no-edit --amend
|
| git commit --verbose --all --date=now --no-edit --amend
|
| git commit --verbose --amend
|
| git commit --verbose --no-edit --amend
|
| |
| |
| |
| |
| git describe --tags $(git rev-list --tags --max-count=1)
|
| |
| |
| git diff --cached --word-diff
|
| |
| |
| git diff -w "$@" | view -
|
| |
| git diff $@ ":(exclude)package-lock.json" ":(exclude)\*.lock"
|
| git diff-tree --no-commit-id --name-only -r
|
| |
| |
| |
| |
| |
| |
| |
| git log --graph --decorate --all
|
| git log --graph --max-count=10
|
| 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'
|
| git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all
|
| git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat
|
| git log --oneline --decorate
|
| git log --oneline --decorate --graph
|
| git log --oneline --decorate --graph --all
|
| git log --pretty=<format>
|
| |
| |
| git ls-files -v | grep "^[[:lower:]]"
|
| |
| |
| |
| |
| |
| git merge origin/$(git_main_branch)
|
| git merge upstream/$(git_main_branch)
|
| git mergetool --no-prompt
|
| git mergetool --no-prompt --tool=vimdiff
|
| |
| |
| |
| 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 origin "$(git_current_branch)"
|
| git pull origin $(current_branch)
|
| git pull upstream $(git_current_branch)
|
| git pull upstream $(git_main_branch)
|
| |
| |
| |
| git push --force origin $(current_branch)
|
| On Git >= 2.30: git push --force-with-lease --force-if-includes |
| On Git < 2.30: git push --force-with-lease |
| git push --force-with-lease origin $(current_branch)
|
| git push --set-upstream origin $(git_current_branch)
|
| On Git >= 2.30: git push --set-upstream origin $(git_current_branch) --force-with-lease --force-if-includes |
| On Git < 2.30: git push --set-upstream origin $(git_current_branch) --force-with-lease |
| |
| git push origin --all && git push origin --tags
|
| |
| git push origin "$(git_current_branch)"
|
| git push origin $(current_branch)
|
| |
| |
| |
| |
| |
| |
| |
| git rebase $(git_develop_branch)
|
| git rebase $(git_main_branch)
|
| git rebase origin/$(git_main_branch)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| git reset --hard && git clean --force -dfx
|
| git reset --hard && git clean --force -df
|
| git reset origin/$(git_current_branch) --hard
|
| |
| |
| |
| git rev-list --max-count=1 --format="%s" HEAD | grep -q "--wip--" && git reset HEAD~1
|
| |
| |
| |
| git shortlog --summary -n
|
| |
| git show --pretty=short --show-signature
|
| |
| git stash --include-untracked
|
| |
| |
| |
| |
| |
| On Git >= 2.13: git stash push |
| On Git < 2.13: git stash save |
| |
| |
| |
| |
| |
| |
| |
| git svn dcommit && git push github $(git_main_branch):svntrunk
|
| |
| |
| |
| git switch $(git_develop_branch)
|
| git switch $(git_main_branch)
|
| |
| |
| |
| git update-index --assume-unchanged
|
| git update-index --no-assume-unchanged
|
| git whatchanged -p --abbrev-commit --pretty=medium
|
| |
| |
| |
| |
| |
| gitk --all $(git log --walk-reflogs --pretty=%h) &!
|
| gtl(){ git tag --sort=-v:refname -n --list ${1}\* }; noglob gtl
|