create.sh 407 B

1234567891011121314151617181920
  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 "A B C D E F" >> second.txt
  14. git add .
  15. git commit --amend -m "Added one"
  16. }
  17. _create _ex