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

[gits] Two Branches, same name



In case anybody wants to enlighten me...

	Eric> git remote add kdownie git-public.flux.utah.edu:/blah/blah/blah
	Eric>
	Eric> # This fetches a *lot* of branches...
	Eric> git fetch kdownie

The command that one really wants here is

  git fetch kdownie refs/heads/aptui:refs/remotes/kdownie/aptui

But that is bare-bones and confusing.  Is there an efficinet, non-confusing way
of doing the above?  Or better yet, how can I make the command below work
without doing an explicit "git fetch"?

	Eric> # Make a branch "kaptui", tracking remote "kdownie/aptui", and
	Eric> # switch to the "kaptui" branch.
	Eric> 
	Eric> git checkout -b kaptui kdownie/aptui

Eric.

-- 
-------------------------------------------------------------------------------
Eric Eide <eeide at cs.utah.edu>  .         University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX