LOG: elements limit: git log -2 patch: git log -p oneline: git log --pretty=oneline filters: git log --since=2.weeks --author=trilolol --grep=keywords function: git log -S function_name branches logging: git log --decorate or git branch Config: levels: git config --local git config --global git config --system remove entry: git config --unset replace working directory on push: git config receive.denyCurrentBranch updateInstead Changes: git status Diff indexed - working dir: git diff Diff indexed - commit: git diff --staged (или --cached) Tools: git difftool --tool-help git difftool --tool= git difftool Commits: commit with message git commit -m "message" autoindex: git commit -a inlude current index in previous commit: git commit --amend Remove files: Remove from repository: git rm Remove from index: git rm --cached Unindex: git reset -- Move sequence (rm-add): git mv Revert changes: git checkout -- Branches: new branch: git checkout -b или: git branch или: git switch -c switch branch: git checkout или: git switch Merging: step 1, switch to original branch: git switch master step 2, run command specifying branch that will be merged in original: git merge hotfix conflicts: git mergetool Remote: add: git remote add git remote add name trilolol@example.com:/var/www/folder rename: git remote rename upload updates: git push download updates git pull