Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

How does Pull work using GIT Desktop

Solved! Go to Solution.

Okay, new person here.

I am using GitHub Desktop, there are 2 people on our team.

I will call the other person "OtherPerson".

 

A repo has been created on GitHub and the OtherPerson has created a branch called "Branch_Aug_20" from the master and has worked on changes locally (on the OtherPerson local computer) for a while and now pushes that branch to the remote repo on GitHub.

 

I log into GitHub desktop and want to "Pull" the branch "Branch_Aug_20" to my local computer.

I choose the "Current Repository" in the top left corner to be the repo that we are both working on.

 

Question:  Do I need to create a branch myself before I can "Pull" the branch "Branch_Aug_20"?

 

If I don't create any branch myself and just "Pull", does a branch get created automatically and what will it be called?

 

OR

Will I get a local branch called "Branch_Aug_20"?

 

Question:  If I first create a branch called "MyBranch1", and then "Pull" "Branch_Aug_20", does that "Pull" get associated with my branch called "MyBranch1"?

 

I don't want to screw up the files by trying a bunch of things when I am not sure what will happen.

 

Thanks for any replies.

2 Replies
Solution
Copilot Lvl 2
Message 2 of 3

Re: How does Pull work using GIT Desktop


@TG-009 wrote:

Question:  Do I need to create a branch myself before I can "Pull" the branch "Branch_Aug_20"?

 

If I don't create any branch myself and just "Pull", does a branch get created automatically and what will it be called?

 

OR

Will I get a local branch called "Branch_Aug_20"?


 

You just select branch "Branch_Aug_20" and pull,
It will create "Branch_Aug_20" locally.


Question:  If I first create a branch called "MyBranch1", and then "Pull" "Branch_Aug_20", does that "Pull" get associated with my branch called "MyBranch1"?



It will not be associated.
If you create branch "MyBranch1" it will be a new unrelated branch.

Copilot Lvl 2
Message 3 of 3

Re: How does Pull work using GIT Desktop

Thank you for the answers.  It seems so obvious now that I think about it and see it in action.