1

What are the differences between:

git checkout - 

and

git checkout master

Thanks

Romain Valeri
  • 19,645
  • 3
  • 36
  • 61
Bob5421
  • 7,757
  • 14
  • 81
  • 175
  • 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
  • 58,414
  • 16
  • 114
  • 157
Romain Valeri
  • 19,645
  • 3
  • 36
  • 61