Git's push.default setting
Menno Smits
menno.smits at canonical.com
Sat Jun 7 00:09:24 UTC 2014
To avoid having to type the branch name when pushing changes to your fork
on Github I would recommend setting push.default to "current". You can then
just push with "git push origin" (no branch name required).
Git v1's default push behaviour if you don't specify the branch name is to
push all branches where the local branch name matches the remote branch
name. This might be more than you really want to push. Using a push.default
of "current" gives both convenience and safety.
There's a good explanation here: http://stackoverflow.com/a/948397
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140607/7beec7a1/attachment.html>
More information about the Juju-dev
mailing list