create.sh 630 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. source ../_generic_create.sh
  3. function _ex() {
  4. touch first.txt
  5. git add .
  6. git commit -m "First commit"
  7. echo "one" >> first.txt
  8. git commit -am "Added one"
  9. echo "two" >> first.txt
  10. git commit -am "Added two"
  11. git push -u origin master
  12. git reset --hard HEAD~1
  13. touch second.txt
  14. git add .
  15. git commit -m "Created second.txt"
  16. echo "A" >> second.txt
  17. git commit -am "WIP"
  18. echo "B" >> second.txt
  19. echo "C" >> second.txt
  20. git commit -am "WIP"
  21. echo "D" >> second.txt
  22. echo "E" >> second.txt
  23. echo "F" >> second.txt
  24. git commit -am "WIP"
  25. }
  26. _create _ex