周亚博的个人博客

  • 首页
  • 盛夏光年
  • 陪风去荡
  • 布响丸啦
我频繁记录着 因为生活值得
  1. 首页
  2. 文章
  3. 正文

将本地代码上传到github

2022-10-13 61点热度 0人点赞 1条评论

1、新建仓库

...

2、拷贝仓库https链接

3、在本地代码根目录下打开git bash

4、使用git init初始化本地仓库

5、使用git add .将所有文件添加到本地仓库进行管理

6、使用git commit -m "提交描述"将代码提交到本地仓库

7、使用命令git remote add origin 远程链接将本地仓库与远程仓库建立连接

8、如果本地没有README文件而远程仓库有,需要使用git pull --rebase origin main将远程代码拉取到本地

9、然后使用git push -u origin main进行初次代码的上传

10、后续修改上传只需要使用git push

标签: Github 仓库 提交
最后更新:2022-10-13

粥呀Bo

所谓惊喜,就是苦苦等候的兔子来了,后面却跟着狼

点赞
< 上一篇
下一篇 >

文章评论

  • eTextbookShelf

    Have you ever considered writing an ebook or guest authoring on other blogs?
    I have a blog based on the same topics you discuss and would love to have you share some stories/information. I know my visitors would appreciate your work.
    If you are even remotely interested, feel free
    to shoot me an email.

    2022-10-25
    回复
  • 取消回复

    COPYRIGHT © 2022 zhouyaker.cn. ALL RIGHTS RESERVED.

    THEME KRATOS MADE BY VTROIS

    陕ICP备2022009272号