Want to make a branch ?
git checkout
Want to make switch branches ?
git checkout
Want to get a specific file version ?
git checkout
Want to get remove changes to one file ?
Believe it or not, also
git checkout
Want to make a branch ?
git checkout
Want to make switch branches ?
git checkout
Want to get a specific file version ?
git checkout
Want to get remove changes to one file ?
Believe it or not, also
git checkout
the pasted commit will be at the top of the history for branch 2
That seems like it would cause chaos if those branches were ever merged.
Git’s smart enough to realize it’s the same commit and skip it.
Common workflow use of cherry-pick:
All this works without issue.