Commit or discard the changes and try again.解决方法:1.先切换到本地仓库路径:cd /Users/etong/Git-Projects2.执行重置命令:git reset --hard