create.sh 349 B

12345678910111213141516171819
  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. echo "three" >> first.txt
  14. }
  15. _create _ex