Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git init
- echo init >> demo_file
- git add .
- git commit -m "Init"
- echo 1 >> demo_file
- git add .
- git commit -m "1"
- echo 2 >> demo_file
- git add .
- git commit -m "2"
- echo 3 >> demo_file
- git add .
- git commit -m "3"
- git log --oneline
- cat demo_file
- git rebase -i HEAD~3
- # I tried to delete only commit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement