David
David

Reputation: 287

How to choose a branch in GitHub Desktop to update the local repository?

I just updated my GitHub Desktop and it looks different. I need to update my local branch from branch XXX but I don't know how to choose branch XXX. The new UI has an option of current branch and I am choosing my own branch but how can I choose a branch from which I need to update my branch.

enter image description here

I have 2 branches in which we usually merge our changes. XX1 and XX2 I need to update my local repo from XX2 and I don't see any option to choose XX2 and update my local.Please let me know how can I do it in newer version of GitHub Desktop.

Upvotes: 1

Views: 3896

Answers (2)

David
David

Reputation: 287

So, after a long time I found the answer. This is mainly because of lack of documentation. Anyways. There is tab called Branch in the new UI. Once you click on that you see an option merge into current branch. By click on this option rest is self explanatory. Choose your branch and the branch you want to get the updates from. Once this is done fetch origin will change into pull origin and the local copy will be updated.

Hope this helps.

Upvotes: 0

Jared Andrews
Jared Andrews

Reputation: 272

You should click 'Fetch origin' to be sure your local git knows what's going on in remote. After doing so, you should see the branch available when you click on Current branch. Just click on it to check it out and pull from origin if necessary.

Upvotes: 1

Related Questions