Worktree — multiple branches

Check out a branch in a parallel directory without stashing

git worktree add ../feature-branch feature/my-feature

tool
git45 commands
tags
git

More git commands

  • git submodule update --init --recursive

    Initialize and update all submodules recursively

  • git show <sha>:path/to/file

    Print the content of a file at a historical commit

  • git log --oneline --graph --decorate --all | head -40

    Compact visual branch graph of the entire repo

  • git log -S 'password' --oneline --all

    Find all commits that added or removed the string 'password'

  • git commit --amend --no-edit

    Include staged changes in last commit without changing message

all 45 git commands