119+ commands • Branching, merging, rebasing • Conventional commits
git config --global user.name "Your Name"git config --global user.email "you@example.com"git config --global init.defaultBranch maingit config --global core.editor "code --wait"git config --global alias.co checkoutgit config --listgit initgit clone https://github.com/user/repo.gitgit clone --depth 1 https://github.com/user/repo.gitgit statusgit add file.txtgit add .git add -pgit commit -m "feat: add login"git commit -am "fix: typo"git commit --amendgit commit --amend --no-editgit push origin maingit pull origin maingit pull --rebase origin maingit fetch --allgit branchgit branch -agit branch feature-logingit checkout -b feature-logingit switch -c feature-logingit checkout maingit switch maingit branch -d feature-logingit branch -D feature-logingit push origin --delete feature-logingit branch -m old-name new-namegit merge feature-logingit merge --no-ff feature-logingit merge --squash feature-logingit rebase maingit rebase -i HEAD~3git rebase --abortgit merge --abortgit cherry-pick abc1234git cherry-pick abc1234..def5678git stashgit stash push -m "WIP: login"git stash listgit stash popgit stash applygit stash apply stash@{2}git stash drop stash@{0}git stash cleargit stash -ugit log --onelinegit log --oneline --graph --allgit log -5git log --author="Alice"git log --since="2024-01-01"git log -- file.txtgit log -p file.txtgit diffgit diff --stagedgit diff main..featuregit diff HEAD~2git show abc1234git blame file.txtgit checkout -- file.txtgit restore file.txtgit restore --staged file.txtgit reset HEAD~1git reset --hard HEAD~1git reset --hard origin/maingit revert abc1234git clean -fdgit clean -fdngit refloggit checkout HEAD@{2} -- file.txtgit remote -vgit remote add origin https://github.com/user/repo.gitgit remote rename origin upstreamgit remote remove upstreamgit push -u origin maingit push --force-with-leasegit push --tagsgit fetch upstreamgit remote set-url origin git@github.com:user/repo.gitgit tag v1.0.0git tag -a v1.0.0 -m "Release 1.0"git tag -a v1.0.0 abc1234git tag -l "v1.*"git push origin v1.0.0git push origin --tagsgit tag -d v1.0.0git push origin --delete v1.0.0git bisect start
git bisect bad
git bisect good abc1234git worktree add ../feature feature-branchgit submodule add https://github.com/lib/lib.gitgit submodule update --init --recursivegit archive --format=zip HEAD > repo.zipgit shortlog -sngit log --all --oneline | wc -lgit diff --stat HEAD~5git format-patch -3git apply fix.patchfeat: add user authenticationfix: resolve login redirect loopdocs: update API documentationstyle: format with prettierrefactor: extract auth middlewareperf: cache database queriestest: add unit tests for authchore: update dependenciesci: add GitHub Actions workflowfeat!: drop Node 14 supportnode_modules/*.log!important.log.env
.env.local
.env.*.localdist/
build/
coverage/*.pyc
__pycache__/
*.egg-info/.DS_Store
Thumbs.db*.swp
*.swo
.idea/
.vscode/Made with ♥ by Kas Developer Tools