1

What are the differences between:

git checkout - 

and

git checkout master

Thanks

Romain Valeri
  • 17,132
  • 3
  • 30
  • 49
Bob5421
  • 6,717
  • 12
  • 63
  • 144
  • Possible duplicate of [difference between "git checkout - . " and "git checkout -- ."](https://stackoverflow.com/questions/44001013/difference-between-git-checkout-and-git-checkout) – phd Mar 22 '19 at 16:46
  • https://stackoverflow.com/search?q=%5Bgit%5D+difference+%22checkout+-%22 – phd Mar 22 '19 at 16:46

1 Answers1

2
git checkout -

is just a shortcut to check out the previously checked out branch.

Docs

isherwood
  • 52,576
  • 15
  • 105
  • 143
Romain Valeri
  • 17,132
  • 3
  • 30
  • 49