Git
1. Add new git repository2. Small edit commit3. Squashing several commits into one4. Create a new branch from commit (from log)5. Change last commit message6. Rollback last commit7. Recover from git stash8. Delete merged local branches9. Git diff10. Checkout master in case of conflictsPull remote branch without mergerefusing to merge unrelated historiesGit cheetsheet (old)Reset all commits and back to actual stateSwitch branch errorFiles would be overwritten by mergeShows commits before pushingGit flowGit - Rename local branchRestore deleted branchRemove file from git but keep the fileRollback unwanted commitsMergeRebaseRemove local branchRemove sensitive data from gitTagGit useful commandsSecret: git-secretHow to show current git branch with colors in Bash promptgit: clone repo with another user's keySet email
Last updated
Was this helpful?