checkout/__test__/modify-work-tree.sh

10 lines
210 B
Bash
Raw Normal View History

2023-11-28 21:07:33 +08:00
#!/bin/bash
if [ ! -f "./basic/basic-file.txt" ]; then
echo "Expected basic file does not exist"
exit 1
fi
echo hello >> ./basic/basic-file.txt
echo hello >> ./basic/new-file.txt
git -C ./basic status