modify-work-tree.sh 210 B

12345678910
  1. #!/bin/bash
  2. if [ ! -f "./basic/basic-file.txt" ]; then
  3. echo "Expected basic file does not exist"
  4. exit 1
  5. fi
  6. echo hello >> ./basic/basic-file.txt
  7. echo hello >> ./basic/new-file.txt
  8. git -C ./basic status