What I think I know
When I clone or fetch from a remote repository, the name of the remote is prefixed to the names of the branches imported from this remote.
For instance, if the remote is called origin
in my repository, then after cloning the remote's master
branch is called origin/master
in my repository.
This behavior makes sure that there are never name clashes between imported branches to branches that already exist in my repository (whether they were created locally or imported from other repositories).
What I don't know (i.e. my question)
When I push to a remote repository, is my repository name prefixed (in the remote repository) to the names of the branches that get pushed?
If not, how are branch name clashes avoided?