添加过程中遇到了这个问题:
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/xxxxxcxxx.git'
原因:
只是进行了init,并没有执行add、commit 等操作,所以暂存区是空的。
解决方案:
先init,之后add、commit之后,再进行git push -u origin master
添加过程中遇到了这个问题:
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/xxxxxcxxx.git'
原因:
只是进行了init,并没有执行add、commit 等操作,所以暂存区是空的。
解决方案:
先init,之后add、commit之后,再进行git push -u origin master