2017-04-05 7:34 GMT+02:00 Zero point minus two <jmcrazyst...@gmail.com>:

>
> Sometimes branches are written as "origin/master" and sometimes they are
> written as "origin master" I guess that's  a bit confusing.
>

I am wrong about that.

"origin/master" would be a reference to a remote branch, ie. "git fetch
origin/master"

"origin master" would be part of a command to (push) your local "master"
branch to the remote "origin" repository, ie.

"git push origin master"

so in that case "master" would refer to the local branch and "origin" would
not refer to a branch, but rather to a remote repository. Therefore,
branches are always written in the style with a /. Or a single word without
a slash of course.

But anyway, all of that aside.

If there is a space in between it does not refer to a complete branch path;
only the latter part is the branch name.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to