Git checkout: "@{-N}" syntax -
i found section in git manpage, it's kind of obfuscated explaination:
as special case, "@{-n}" syntax n-th lastly branch checks out branch (instead of detaching). may specify - synonymous "@{-1}".
what mean?
it's saying if do:
git checkout @{-1}
you'll check out branch on before current branch have checked out. in addition, checks out by name, you'll on branch, rather checking out commit in detached head state. similarly, utilize git checkout @{-2}
go "two branch changes ago", , forth.
git
No comments:
Post a Comment