Worktree — multiple branches
Check out a branch in a parallel directory without stashing
git worktree add ../feature-branch feature/my-feature
More git commands
-
git submodule update --init --recursiveInitialize and update all submodules recursively
-
git show <sha>:path/to/filePrint the content of a file at a historical commit
-
git log --oneline --graph --decorate --all | head -40Compact visual branch graph of the entire repo
-
git log -S 'password' --oneline --allFind all commits that added or removed the string 'password'
-
git commit --amend --no-editInclude staged changes in last commit without changing message