提交项目到码云

码云上创建一个项目project

本地切换到项目目录下

此目录下空白处右键打开git bash

依次执行

git init 

git add

git commit -m "first commit"

git remote add origin https://gitee.com/你的用户名/你的项目名

注意:执行到这一步可能会报错啊:fatal: remote origin already exists.

解决办法:git remote rm origin

再次执行:git remote add origin https://gitee.com/你的用户名/你的项目名        成功

然后git push origin master

输入用户名,密码,OK。

猜你喜欢

转载自blog.csdn.net/qq_41588568/article/details/88815126