User Tools

Site Tools


git_rebase

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_rebase [2019/04/03 20:43]
rpjday [Example requiring --onto newbase]
git_rebase [2019/04/06 21:34]
rpjday [Removing a sequence of commits]
Line 35: Line 35:
         D---E---F---G ​            ​master         D---E---F---G ​            ​master
 </​code>​ </​code>​
 +
 +One of:
 +
 +<​code>​
 +$ git checkout topic
 +$ git rebase master
 +</​code>​
 +
 +or:
  
 <​code>​ <​code>​
Line 81: Line 90:
  
 <​code>​ <​code>​
-$ git rebase --onto B D+$ git rebase --onto B D [HEAD]
 </​code>​ </​code>​
  
git_rebase.txt ยท Last modified: 2019/04/06 21:34 by rpjday