linux_create.sh 276 B

1234567891011121314
  1. #!/bin/bash
  2. rm -f first.txt 2> /dev/null
  3. touch first.txt
  4. git add .
  5. git commit -m "First commit"
  6. echo "one" >> first.txt
  7. git commit -am "Added one"
  8. echo "two" >> first.txt
  9. git commit -am "Added two"
  10. git push -u origin master
  11. git reset --hard HEAD~1
  12. echo "three" >> first.txt