Linux Terminal Glossary
›
Git - Advanced
Git - Advanced
79 commands
git reflog
git reflog show main
git submodule add https://github.com/user/lib.git libs/lib
git submodule init
git submodule update --init --recursive
git submodule update --remote
git submodule foreach git pull
git worktree add ../hotfix hotfix-branch
git worktree list
git worktree remove ../hotfix
git filter-branch --tree-filter 'rm -f secret.txt' HEAD
git notes add -m 'review passed' abc1234
git notes show abc1234
git shortlog -sn
git shortlog -sn --no-merges
git describe --tags
git describe --always --dirty
git gc
git gc --aggressive
git fsck
git fsck --lost-found
git ls-files
git ls-files --others --exclude-standard
git update-index --assume-unchanged file.txt
git update-index --no-assume-unchanged file.txt
git rebase -i HEAD~5
git commit --fixup abc1234
git rebase -i --autosquash HEAD~5
git log --all --format='%T %H %s' | grep 'token'
git bisect run pytest tests/
git rebase -i --update-refs HEAD~3
git rebase -i --rebase-merges HEAD~3
git rebase --exec 'npm test' HEAD~5
git rebase -i --root
git reset --hard HEAD@{1}
git reset --hard origin/main
git reset --keep HEAD~1
git reset --merge HEAD~1
git reflog show HEAD@{5}
git revert --no-commit HEAD~2
git revert -m 1 abc1234
git revert --continue
git revert --abort
git cherry-pick -x abc1234
git cherry-pick -n abc1234
git cherry-pick --continue
git cherry-pick --abort
git commit -S -m 'Release v2.0'
git commit --amend --reset-author
git verify-commit HEAD
git bisect skip
git bisect log
git worktree prune
git range-diff main...feature
git format-patch -1 HEAD
git format-patch -3 --stdout | git am -3
git bundle create repo.bundle --all
git bundle verify repo.bundle
git bundle list-heads repo.bundle
git filter-repo --path secret.txt --invert-paths
git filter-repo --analyze
git sparse-checkout init --cone
git sparse-checkout set apps/web
git sparse-checkout disable
git lfs install
git lfs track '*.psd'
git lfs ls-files
git lfs migrate import --include='*.zip' --everything
git fsck --unreachable
git gc --prune=now
git merge -X theirs feature-xyz
git push --mirror origin
git grep -n 'password' $(git rev-list --all) -- '*.py'
git update-index --skip-worktree config.local.json
git update-index --no-skip-worktree config.local.json
git merge-base main feature
git checkout --ours src/conflict.js
git checkout --theirs src/conflict.js
git commit --fixup=amend:abc1234
Search all 7,657 commands
instead.