What would be the closest git command equivalent to a svn command: "svn checkout -r 123 "?
git checkout -b myBranch <SHA1_for_r123>
You would update your working tree with the right SHA1 revision, while creating a branch in order to isolate any new commit you will make in that branch.
If you only did:
git checkout <SHA1_for_r123>
you would end up in a detached HEAD mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With