zoukankan      html  css  js  c++  java
  • 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).

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    Web的攻击技术
    基于HTTP的功能追加协议
    确认访问用户身份的认证
    基本数据结构的模拟
    BFS与DFS
    KMP算法
    Trie字典树
    C++的结构体使用
    C++入门(命名空间)
    算法:C++入门
  • 原文地址:https://www.cnblogs.com/jamesf/p/4751597.html
Copyright © 2011-2022 走看看