前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Jyputer 项目工程设置Github同步,本地代码上传Github实例演示

Jyputer 项目工程设置Github同步,本地代码上传Github实例演示

作者头像
小蓝枣
发布2021-12-01 14:31:35
2860
发布2021-12-01 14:31:35
举报
文章被收录于专栏:CSDN博客专家-小蓝枣的博客

首先在 Github 上创建一个仓库,它将用于存储、同步本地 Jyputer 里的项目。

在这里插入图片描述
在这里插入图片描述

获取到仓库的 SSH 地址。

在这里插入图片描述
在这里插入图片描述

下面的文件夹就是我想同步的项目工程。

在这里插入图片描述
在这里插入图片描述

在当前文件夹下依次使用如下命令: git init 初始化项目。 git add 项目文件夹 添加项目。 git commit -m "说明" 初始化项目。 git remote add origin 指定仓库的SSH地址 初始化项目。 git push -u origin master 上传项目到 Github

详细演示过程如下:

代码语言:javascript
复制
XIAOLANZAO+Administrator@xiaolanzao MINGW64 /c/Py_jupyter
$ git init
Initialized empty Git repository in C:/Py_jupyter/.git/

XIAOLANZAO+Administrator@xiaolanzao MINGW64 /c/Py_jupyter (master)
$ git add pytools

XIAOLANZAO+Administrator@xiaolanzao MINGW64 /c/Py_jupyter (master)
$ git commit -m "first commit"
[master (root-commit) 382fbf4] first commit
 1 file changed, 287 insertions(+)
 create mode 100644 "pytools/src/pytools/jacoco\345\205\250\351\242\206\345\237\237\346\212\223\345\217\226\345\267\245\345\205\267.py"

XIAOLANZAO+Administrator@xiaolanzao MINGW64 /c/Py_jupyter (master)
$ git remote add origin git@github.com:2418546511/Py_jyputer.git

XIAOLANZAO+Administrator@xiaolanzao MINGW64 /c/Py_jupyter (master)
$ git push -u origin master
Warning: Permanently added the RSA host key for IP address '192.30.255.113' to the list of known hosts.
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (6/6), 4.25 KiB | 2.13 MiB/s, done.
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:2418546511/Py_jyputer.git
 * [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.

效果图如下:

在这里插入图片描述
在这里插入图片描述

可以看到 Github 上已经同步过来了。

在这里插入图片描述
在这里插入图片描述

后面更新代码再上传的话只需使用下面的命令就可以了: git add 项目文件夹 添加项目。 git commit -m "说明" 初始化项目。 git push -u origin master 上传项目到 Github

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020/12/11 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档