在bash脚本中自动拉取git 发表评论 cd /path/to/your/project unset GIT_DIR #重要是这里.. git reset --hard HEAD git pull origin master