-
第一步,先给本项目创建本地git库
-
去远程git库创建项目
-
将已有项目上传码云
- 如果报错,
error: src refspec master does not match any error: failed to push some refs to 'https://gitee.com/liu63/threadpooltaskdemo.git'
。又可能是和我一样,忘记将本地文件提交到本地库了,所以
git commit -m "first commit"这句命令就是将代码提交到本地库
- 如果再次提交依然报错
remote: Incorrect username or password ( access token ) fatal: Authentication failed for 'https://gitee.com/liu63/threadpooltaskdemo.git/'。 这报错提示的很明显,我的账号密码错误。那么重新将我的账号密码登进去就可以了
- 再次提交就圆满成功。提交的命令就是
git push -u origin master
-u一定要记得加哟!!!!!!