[program-l] Re: question on git branches

  • From: Jim Homme <jhomme@xxxxxxxxxxxxxxxxx>
  • To: "program-l@xxxxxxxxxxxxx" <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 30 Nov 2018 12:06:10 +0000

Hi Everyone,
I am not a Git expert, but I have been writing notes for myself as I have been 
learning to work with Git. If there is a Git expert here, would you mind 
reading through my notes and helping me correct any inaccuracies?

Thanks.

Jim



==========
Jim Homme
Product Manager
Digital Accessibility 
Bender Consulting Services
412-787-8567
https://www.benderconsult.com/our%20services/hightest-accessible-technology-solutions
People with disabilities, access job openings at 
https://www.benderconsult.com/careers/job-openings    ;
 

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> On Behalf 
Of Andre Polykanine
Sent: Thursday, November 29, 2018 6:55 PM
To: David Mehler <program-l@xxxxxxxxxxxxx>
Subject: [program-l] Re: question on git branches

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
** 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: