git 心痛体会
在出现这个错误之后我先后找了几个方法但是都没解决掉我的问题,之后呢,我偶然看到一位 低调的大神发表的意见:
我就试了一下:
I faced same problem and I used --allow-empty.
$ git commit -m "initial commit" --allow-empty
...
$ git push
...
$ git commit -m "initial commit" --allow-empty
...
$ git push
...
转载于:https://my.oschina.net/u/3520255/blog/3034741