0

Does git checkout -m act the same as an immediate sequence of git stash push, git checkout and git stash pop? (Yes as far as I can guess). My question originated from Is it necessary to run `git stash push` before `git checkout`

halfer
  • 19,824
  • 17
  • 99
  • 186
Tim
  • 1
  • 141
  • 372
  • 590
  • 1
    Have you read the [documentation of `git checkout -m`](https://git-scm.com/docs/git-checkout#git-checkout--m)? – axiac Jan 31 '19 at 15:21
  • @axiac Maybe he has, but Git's official documentation is famous for being cryptic and abstract (hence SO is in business). This is a valid question IMHO. – Tim Biegeleisen Jan 31 '19 at 15:23
  • @Tim From what I read, yes, they are the same and your own conclusion is correct. – Tim Biegeleisen Jan 31 '19 at 15:25
  • @TimBiegeleisen I suppose the Git's documentation is famous to be cryptic and abstract for those who do not read it and prefer to "learn" from what they hear from other developers. I have always found all the answers about Git into its documentation. And this question, be it valid or not, suggests that the author didn't bother to type `git help checkout` before asking. It is sad if this is the case. – axiac Feb 03 '19 at 17:52

0 Answers0