使用GIT上传文件至GITHUB
2018-02-07 本文已影响0人
YKishere
使用GIT上传文件至GITHUB
新建空目录,并初始化

克隆远程数据库

建立新文件并添加到库

提交commit

上传文件

操作的时候,最后一步出现问题(git本地仓库首次push到远程仓库出现错误 ! [rejected] master -> master (fetch first))

最后强制上传:
git push -u origin master -f
操作的时候,最后一步出现问题(git本地仓库首次push到远程仓库出现错误 ! [rejected] master -> master (fetch first))
最后强制上传:
git push -u origin master -f