当前位置:   article > 正文

如何创建gitee仓库以及上传代码详细步骤_gitee创建仓库上传代码

gitee创建仓库上传代码

1、登录gitee- - >点击仓库- - >创建仓库

在这里插入图片描述

2、新建仓库,填入仓库信息,点击创建

在这里插入图片描述
3、这时会生成一个初始化文件,一些命令:


## Git 全局设置

git config --global user.name "自己的用户名"
git config --global user.email "自己的邮箱"

## 创建 git 仓库:

mkdir oao
cd oao
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/自己的用户名/oao.git
git push -u origin "master"

## 已有仓库?

cd existing_git_repo
git remote add origin https://gitee.com/自己的用户名/oao.git
git push -u origin "master"
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22

在这里插入图片描述在这里插入图片描述
请添加图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/188233
推荐阅读
相关标签
  

闽ICP备14008679号