This is well explained in: https://content.pivotal.io/blog/git-rebase-onto
Attach a file by drag & drop or click to upload