git 将本地代码上传到gitee 上面

只要选对了人生的方向,很容易就成功了,让我们恭喜只要和很容易。

 

第一步在gitee上先创建仓库

 

第二步在本地项目上进行初始化

git init

第三步将远程仓库添加到本地仓库

git remote add origin your_git

第四步将远程仓库同步

git pull origin master

第五步提交本地代码到本地仓

git add .
git commit -m 'your commit'

第六步提交到远程仓库

git push origin master

 

posted @ 2022-10-11 08:59  方达达  阅读(11)  评论(0编辑  收藏  举报