One Quickie


Pushing only default branch by default (git->Hacks)
By default git push tries to push all the branches, sometimes eliciting this wonderful response:
error: failed to push some refs to 'git@github.com:bignerdranch/roominant.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you did not intend to push that branch, you may want to
hint: specify branches to push or set the 'push.default' configuration
hint: variable to 'current' or 'upstream' to push only the current branch.
hint: you might as well just give up. neener neener neener.  love, Git
So you can tell git to only push the currently active branch:
% git config --global push.default current



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com