- copy to system clipboard
- Normal mode: repfx-y
- Visual mode: y
git stash -u (safe for git clean)
git add -p (part of file)
git pull --autostash --rebase (rebase and move commit and uncommit on top)
- Back: C-[
- Forward: C-]
$ git worktree add -b hotfix ../hotfix origin/master
Enter ../hotfix (identifier hotfix)
Branch hotfix set up to track remote branch master from origin.
Switched to a new branch 'hotfix'
$ cd ../hotfix
$ cd ../main
$ rm -rf ../hotfix
$ git worktree prune
$ git branch -D <branch-name>
$ git fetch upstream
$ git checkout -b whizbang upstream/master
$ git pull
or
$ git pull --rebase