[program-l] Re: question on git branches

  • From: Andre Polykanine <andre@xxxxxxxx>
  • To: David Mehler <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 30 Nov 2018 01:55:06 +0200

Hi Dave,
On the second machine try:
git branch --all
You   should   see   all   of  the  remote  branches,  including  your
origin/mybranch.
Then, to track it on the second machine, do:
git checkout --track origin/mybranch


-- 
With best regards from Ukraine,
Andre
Skype: menelion_elensule
Twitter (English only): @AndrePolykanine


------------ Original message ------------
From: David Mehler <dave.mehler@xxxxxxxxx>
To: program-l@xxxxxxxxxxxxx
Date created: , 1:27:20 AM
Subject: [program-l] question on git branches


      Hello,

I've got a git repo. I'm hosting it on a server. I've got two machines
that I work on with this repo. If I create a branch on one machine
then later commit that branch locally that works. I push it to the
server with:

git push origin branchname

works fine, but on machine 2 when I either clone the repo or if I have
changes and pull them and I do a git branch to list my branches I only
see the master branch.

Any ideas?

Thanks.
Dave.
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: