missya
首先在github 上创建好远程仓库,并拷贝仓库地址,接下来按照以下步骤:
 
1、打开命令行进入要上传的文件目录,初始化 git init 
2、 建立远程仓库,git remote add origin  "地址"
3、 添加文件,git add .  (git add --all 也可以)
4、查看状态 git status
5、 添加更新注释内容,git commit -m "注释"
6、 进行代码合并, git pull --rebase origin master
7、第一次更新内容会要求输入用户名或者邮箱进行身份验证, git config --global user.name "你的名字或昵称"
                              git config --global usre.name "你的邮箱"
8、 上传代码到github远程仓库 git push -u origin master

分类:

技术点:

相关文章:

  • 2021-04-24
  • 2021-07-15
  • 2022-01-07
  • 2021-06-14
  • 2021-07-14
  • 2021-11-05
  • 2022-01-03
猜你喜欢
  • 2022-01-22
  • 2021-07-10
  • 2022-02-08
  • 2022-12-23
  • 2021-09-20
  • 2021-07-08
  • 2021-11-30
相关资源
相似解决方案