How to push to GitHub using Git Bash?

别说谁变了你拦得住时间么 提交于 2019-12-04 15:25:57

Usually what I do in this situation is just "start over". It is probably not the optimal way to do this, but it works.

  1. Back up your commits, for example to back up the last 4 commits that have not been pushed

    git format-patch -4
    
  2. Re clone the repo

    git clone https://github.com/svnpenn/a
    
  3. Apply your commits. Note since you said Windows, you might need to add --keep-cr here

    git am ../0001-type-magick-dev-null-exit.patch
    
  4. try pushing again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!