发表于: 2018-07-30 23:32:12
1 480
今日完成的事:
1、注册github账号并创建项目,熟悉github的使用;
2、将本地项目上传到github。
明天计划:
1、学习git;
2、上传本地项目到github;
3、配置webstorm。
遇到的问题:
在提交本地项目的时候会出错:
Pushing to https://github.com/123nms/start-a-projec.git
To https://github.com/123nms/start-a-projec.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/123nms/start-a-projec.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.
上网查了说是远程仓库的代码和提交的代码不一致导致的,不明白为什么会出现这个错误,同时试了网上说的先pull再push还是不行,下次再试试。
评论