[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gits] pushing a branch

On Wed, Oct 09, 2013 at 05:52:40AM -0700, Leigh Stoller wrote:
> So if I am on a tracking branch and I want to push it up:
> boss> git push
> pushes the branch but also everything else. So I do:
> boss> git push central aptui
> and that works. But is there a way to tell git to just push
> the branch I am sitting in? If I have to remember different
> commands depending on the branch I am in, I am hosed.

"git push central HEAD" should do what you want.

I believe Eric's suggestions are all correct too, but I think that
just saying HEAD is the easiest thing to do if you don't want to adjust
your config.

Bye for now,
       Gary Wong      gtw at flux.utah.edu      http://www.cs.utah.edu/~gtw/