manju manju - 3 months ago 29
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

> 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.