What's the difference “origin master” vs “origin/master”

后端 未结 1 795
花落未央
花落未央 2021-02-03 19:51

What is the difference between a space and a slash when running git commands?

I sometimes see

git push origin master (which is a space)

and

相关标签:
1条回答
  • 2021-02-03 20:25

    This is not a "convention". The former is two separate arguments in different positions with different meanings to git push, and the latter is a single argument which identifies the remote-tracking branch origin/master.

    0 讨论(0)
提交回复
热议问题