Advertisement
JPeterson

bzr rebase

Dec 15th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. # how do i rebase commit "2"?
  2.  
  3. # init repo
  4. rm -rf * .*; bzr init; printf 'test'>'test.py'; bzr add; bzr commit -m"1"; printf 'test2'>'test.py'; bzr commit -m"2"; printf 'test3'>'test.py'; bzr commit -m"3";
  5.  
  6. # change commit "2" with uncommit
  7. bzr uncommit --force -r-3
  8. printf 'test-2'>'test.py';
  9. bzr commit -m"2"
  10.  
  11. # change commit "2" with rebase
  12. bzr rebase -r-2 .
  13. # Base branch is descendant of current branch. Pulling instead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement