Advertisement
Moon1706

Git question

Apr 17th, 2022
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. git init
  2. echo init >> demo_file
  3. git add .
  4. git commit -m "Init"
  5. echo 1 >> demo_file
  6. git add .
  7. git commit -m "1"
  8. echo 2 >> demo_file
  9. git add .
  10. git commit -m "2"
  11. echo 3 >> demo_file
  12. git add .
  13. git commit -m "3"
  14. git log --oneline
  15. cat demo_file
  16. git rebase -i HEAD~3
  17. # I tried to delete only commit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement