Cc: Peter Baumann <waste.manager@...>, Andreas Ericsson <ae@...>, J. Bruce Fields <bfields@...>, Jakub Narebski <jnareb@...>, Federico Mena Quintero <federico@...>, <git@...>
On Oct 25, 2007, at 12:27 PM, Johannes Schindelin wrote:
[...]
Well, I'm lazy. git already knows everything. It knows that
the current branch is associated with a specific remote and it
pushes matching branches by default. And I took care to not
pollute the namespace. All my branches are named identical
in all repositories I'm dealing with. It's reasonable to want
"git push" to do the right thing.
Well I was more precise and got lazy over time. Now the most I do
is "git push --dry-run" and if it looks good I do "git push".
Most of the time I just say "git push".
As I pointed out earlier, "git push origin <some-branch>" can create
a new branch on the remote. "git push" never creates a new branch.
I believe "git push" is safer.
Wow, looks weird (not too me but to someone who doesn't know git).
It's not inconsistent. It's an option of a branch. Git supports two
flavours of local branches. Some branches automatically merge and other
don't.
Steffen
-
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