Get changes from master into branch in Git

Slee picture Slee · Mar 17, 2011 · Viewed 711.3k times · Source

In my repository I have a branch called aq which I'm working on.

I then committed new work and bugs in master.

What is the best way to get those commits into the aq branch? Create another new branch out of master and merge it with aq?

Answer

Douglas F Shearer picture Douglas F Shearer · Mar 17, 2011

Check out the aq branch, and rebase from master.

git checkout aq
git rebase master