使用git 上传项目到gitee或github
参考: https://blog.csdn.net/qq944639839/article/details/79864081
注意:在此之前需要设置ssh公匙
在本地项目文件中使用bash
$ git config --global user.name "你的名字"
$ git config --global user.email "你的邮箱"
# (可选)设置默认编辑器
$ git config --global core.editor vi
1. 初始化
$ git init
$ git remote add origin https://gitee.com/xxx/xxx.git (你的远程项目地址)
2.克隆一下
$ git clone https://****.git (你的远程项目地址)
如果项目是空的,则需要进行 第一步与第二步
3. 提交
$ git pull origin master (注意,这一步会强拉远程仓库到本地)
$ git add .
$ git commit -m "提交描述"
$ git push origin master
完成了第一次提交
如果说我的文章对你有用,只不过是我站在巨人的肩膀上再继续努力罢了。
若在页首无特别声明,本篇文章由 Schips 经过整理后发布。
博客地址:https://www.cnblogs.com/schips/
若在页首无特别声明,本篇文章由 Schips 经过整理后发布。
博客地址:https://www.cnblogs.com/schips/

浙公网安备 33010602011771号