Nope. That is necessary only for the initial push.
Remember: "git push" defaults to pushing to the remote "origin", and _all_
local branches which the remote knows about.
And the latter is the reason why the initial push needs a special
handling: the local and the remote repository have no branches in common,
because the remote one does not have _any_ branch yet!
So, once you pushed the initial push, you can drop the "origin master"
from subsequent pushes!
It's highly unlikely that you have the same in mind as git when you say
"--mirror" in this context. Just have a look at git-push, which has
recently acquired that option.
Besides, we really have "clone" for "init + fetch".
I am not blaming here. I just try to see where it comes from.
In git, all repositories are equal. Provided you can connect two of them
(or not even that; think of bundles), you can push back and forth between
_all_ of them.
Since this is something I like about git, I had some problems finding out
where this "I have to clone from the same repository I want to push to"
idea comes from.
And I am thankful that you bring up the vexing issues so that we can
discuss (and hopefully fix) them.
Hey, if it works for you, I am all the happier! (Of course, I am in a
better position than you, here; I _am_ the sysadmin, and my ssh setup Just
Works...)
Ciao,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html