第一步:在本地找到项目代码,进行仓库初始化

//进入相应项目文件夹
D:\>cd D:\nodeProject\go-eplat-manage
//实现git的仓库初始化
D:\nodeProject\go-eplat-manage>git init
//设置账户 与  邮箱
D:\nodeProject\go-eplat-manage>git config --local user.name "东楚霸王" 
D:\nodeProject\go-eplat-manage>git config --local user.email "[email protected]"

第二步:将文件添加到仓库中

git add src
git add vue.config.js
.....

第三步:提交仓库信息

git commit -m "添加资源"

第四步:到gitee中添加shh的公钥 进入Git Bash 将shh秘钥复制到粘贴板

clip < ~/.ssh/id_rsa.pub

如果本机没有shh公钥 则根据这个生成一个
https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

第五步:将公钥放入到gitee的公钥库中
git的基础使用(一)

第六步:则在gitee中创建自己的仓库(省)
git的基础使用(一)
第七步:添加远程仓库

git remote add origin gitee仓库地址

第八步:将本地仓库与远程仓库进行关联

git push --set-upstream origin master

第九步:将本地代码推到服务器

git push

到此完成Ok。

相关文章:

  • 2021-07-24
  • 2021-09-11
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-06-12
  • 2021-10-07
  • 2022-12-23
  • 2021-04-07
  • 2021-06-02
相关资源
相似解决方案