Lazygit §
- Press
3, to go to 3. Branches
- Select the branch that contains the commit-of-interest
- Using
↓/↑ (or single click)
- Press
enter, to go drill-down into the branch, and see its commits
- Select the commit-of-interest, using
↓/↑ (or single click)
- Press
n, to create a new branch
- Enter branch name into pop-up menu, below:
- Press
enter, to continue.
- You should now see your new branch created and checked out (with
* star)
Basic Terminal §
- Find the commit SHA of the commit-of-interest
git log --oneline --graph
- Copy the commit SHA
- Paste the commit SHA into the following command
git checkout -b <new-branch-name> <commit-SHA>