Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- mkdir testing_git
- cd testing_git
- git init
- touch main.txt
- git add .
- git commit -m "initial commit"
- # setup B branch
- git checkout -b B
- echo hello > test.txt
- git add .
- git commit -m "added test.txt"
- # setup master
- git checkout master
- echo hello > test.txt
- git add .
- git commit -m "added test.txt"
- rm test.txt
- git add .
- git commit -m "remove test.txt"
- # execute rebase
- git checkout B
- git rebase master
- echo "\nSee the result in the testing_git directory"
Advertisement
Add Comment
Please, Sign In to add comment