Some of your uncommitted changes would be overwritten by syncing.Please commit your changes then try

  1. 解决方法有三种,在GitHub shel中输入以下命令,任选一种方法就能解决问题

     git reset --hard HEAD


     -- Destructive. When you do this you'll throw away everything you've done up to that point and be back at the last HEAD before you made any changes.

  2. git commit 


    -- In the middle. With this you're committing your changes which will get rid of the error but if the changes aren't complete its probably superfluous.

  3. git stash -u 


    -- My recommendation. With this you're able to "stash" or set aside the changes you've made up until this point. Then you can pull from a remote without interfering. Once you've done that you can run a git stash pop which will put back all of the changes you've made (without committing them).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值