From: Marc Branchaud Date: Tue, 10 Mar 2009 20:26:03 GMT Subject: Re: setting up tracking on push Message-ID: <49B6CCDB.8010305@xiplink.com> In-Reply-To: <87d4cuobrc.fsf@catnip.gol.com> Miles Bader wrote: > Jay Soffian writes: >> I don't think we need a new command, but it would probably fit into >> git remote >> >> $ git remote track [] > > That seems a bit backwards -- it's more of a branch operation than a > remote operation... Agreed. We just ran into this situation today with pull: Someone wanted one of their local branches to start tracking a remote. It would be good if the branch command allowed modification of a branch's properties. At the very least, branch-creation commands like "git branch --track foobranch origin/master" could offer to modify if the branch already exists, instead of just quitting. BTW, I think the following (untested) incantation adds tracking to a branch: git config branch.foobranch.remote origin git config branch.foobranch.merge refs/heads/master (Substitute "origin" and "master" to suit your needs.) M.