Hi Dave,
If I understand your question correctly (which I'm not sure I do), then
you need to run
git checkout <branch>
on the second machine.
git branch -lr will list the branches that exist on the remote server, and
git checkout can be used to check out a remote branch onto your machine.
On Thu, 29 Nov 2018, David Mehler wrote:
Hello,** To leave the list, click on the immediately-following link:-
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