daily pastebin goal
3%
SHARE
TWEET

bzr rebase

JPeterson Dec 15th, 2012 26 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data
Top