manju manju - 1 year ago 89
Git Question

How to do git pull from remote when you are in another local brach?

I have two branches in local say A and B, I commited some changes in A as well as B.I push modifications of A to my remote brach say A. now i need pull from my remote branch to my local branch B .How can i do it ??Please Help

Answer Source
> git checkout A
> git pull 
> git checkout B
> git rebase A

Will merge all the changes from local branch A(incorporating changes from the remote repository1) to local branch B.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download