我用windows编译 GOOS=linux GOARCH=amd64 go build -o webserver 然后git push, git commit到github.
在阿里云上的deploy.sh运行出错, git pull后提示:
error: Your local changes to the following files would be overwritten by merge:
webserver/webserver
Please commit your changes or stash them before you merge.
解决了, 修改deploy.sh的git pull前面增加 git reset --hard