How does Pull work using GIT Desktop #22986
-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You just select branch “Branch_Aug_20” and pull,
It will not be associated. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answers. It seems so obvious now that I think about it and see it in action. |
Beta Was this translation helpful? Give feedback.
You just select branch “Branch_Aug_20” and pull,
It will create “Branch_Aug_20” locally.
It will not be associated.
If you create branch “MyBranch1” it will be a new unrelated branch.