[AMBER-Developers] (partially) unsolicited git suggestion

From: Jason Swails <jason.swails.gmail.com>
Date: Thu, 26 Apr 2012 11:05:40 -0400

Hello everyone,

This is a quick bit of advice based on some recent experiences with git.
 On many systems, a "git push" will push all of your local branches into a
remote (specifically the one tracked by your current branch) based on
matching branch names. Therefore, if you have residual commits in another
branch, it will (try to) push those as well, which is often undesired

To fix that, run this command (anywhere):

git config --global push.default tracking

This will make it so a "git push" only pushes your current branch to the
branch that it is tracking. You can also set this behavior on a
repo-by-repo basis by getting rid of the "--global" flag and running that
command in a repo.

I have added this advice to the Wiki:

All the best,

Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
AMBER-Developers mailing list
Received on Thu Apr 26 2012 - 08:30:03 PDT
Custom Search