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:40]
rpjday [DESCRIPTION]
git_rebase [2019/04/06 21:34] (current)
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 61: Line 70:
  
 <​code>​ <​code>​
 +                          o---o---o ​ topic
 +                         /
         o---o---o---o---o ​ master         o---o---o---o---o ​ master
-            |            \ 
-            |             ​o'​--o'​--o' ​ topic 
              \              \
               o---o---o---o---o ​ next               o---o---o---o---o ​ next
- 
 </​code>​ </​code>​
  
-===== Examples =====+
  
 ==== Removing a sequence of commits ===== ==== Removing a sequence of commits =====
Line 82: Line 90:
  
 <​code>​ <​code>​
-$ git rebase --onto B D+$ git rebase --onto B D [HEAD]
 </​code>​ </​code>​
  
git_rebase.1554324014.txt.gz ยท Last modified: 2019/04/03 20:40 by rpjday