Error报错内容:
To https://github.com/GongYuxiu/FCN_pytorch.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/GongYuxiu/FCN_pytorch.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
查找原因:
有另外一个push操作,需要合并(注意:这语句谨慎使用,因为不是所有人都可以,使用之前请将上传数据进行备份,我用的时候没有出现数据丢失的情况,但是有的人会有这一现像,防止数据丢失,请提前备份,谢谢):
git pull --rebase origin master
这时候在进行数据的push操作:
git push origin master
完成啦,再来看看GitHub,也有相应的文件啦: