$ git init
$ git clone repository_url
$ git add file_name
$ git commit -m 'Commit message'
$ git status
$ git log
$ git diff
$ git branch branch_name
$ git checkout branch_name
$ git merge branch_name
$ git branch -d branch_name
$ git remote -v
$ git pull origin branch_name
$ git push origin branch_name
$ git tag -a tag_name -m 'Tag message'
$ git show tag_name
$ git push origin tag_name
$ git reset --hard HEAD
$ git revert commit_hash
$ git stash
$ git rebase branch_name
$ git rebase -i HEAD~3
$ git rebase --abort
$ git cherry-pick commit_hash
$ git cherry-pick -n commit_hash
$ git submodule add submodule_url
$ git submodule update --init --recursive
$ git submodule foreach 'git checkout master && git pull'
$ git flow feature start feature_name
$ git flow release start version
$ git flow hotfix start version
$ git config --global user.name 'Your Name'
$ git config --global user.email 'your.email@example.com'
$ git config --global core.editor 'editor_name'
$ git remote add upstream repository_url
$ git fetch upstream
$ git merge upstream/main
$ git push origin your_branch
$ chmod +x .git/hooks/pre-commit
$ vi .git/hooks/pre-commit
$ git bisect start
$ git bisect good
$ git bisect bad
$ git archive --format=zip --output=archive.zip master
$ git archive --format=tar.gz --output=archive.tar.gz release-1.0
$ git subtree add --prefix=subfolder repository_url master --squash
$ git subtree pull --prefix=subfolder repository_url master --squash
$ git log --oneline
$ git log --graph
$ git log --author='John Doe'
$ git log --since='3 days ago'
$ git log --grep='keyword'
$ git reflog
$ git reflog show branch_name
$ git reflog expire --expire=now --all
$ git bisect start
$ git bisect good
$ git bisect bad
$ git bisect reset
$ git worktree add -b new_branch path
$ git worktree add path existing_branch
$ git worktree list
$ git worktree remove path
$ git config --global rerere.enabled true
$ git rerere
$ git rerere clear
$ git lfs install
$ git lfs track '*.zip'
$ git lfs push --all origin
$ git svn clone svn_repository_url
$ git svn fetch
$ git svn rebase
$ git stash
$ git stash list
$ git stash apply
$ git stash drop