在 Linux 下使用 bash 命令更新 git 参考报错.
資深大佬 : miv 1
错误如下
“`
fatal: not a git repository (or any of the parent directories): .git
“`
“`
fatal: not a git repository (or any of the parent directories): .git
“`
bash 脚本如下
“`
#!/bin/bash
echo “更新项目” &
cd /home/ubuntu/my-project &
git pull origin master
“`
大佬有話說 (9)