Source: /cirosantilli/git-tips/move-your-branch-on-top-of-newest-master

= Move your branch on top of newest master

Before:
``
5 master
|
4 7 my-feature HEAD
| |
3 6
|/
2
|
1
``

Action:
``
git rebase
``

After:
``
7 my-feature HEAD
|
6
|
5 master
|
4
|
3
|
2
|
1
``
Ready to push with linear history!