Jyputer 项目工程设置Github同步,本地代码上传Github实例演示
生活随笔
收集整理的這篇文章主要介紹了
Jyputer 项目工程设置Github同步,本地代码上传Github实例演示
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
首先在 Github 上創(chuàng)建一個倉庫,它將用于存儲、同步本地 Jyputer 里的項目。
獲取到倉庫的 SSH 地址。
下面的文件夾就是我想同步的項目工程。
在當前文件夾下依次使用如下命令:
git init 初始化項目。
git add 項目文件夾 添加項目。
git commit -m "說明" 初始化項目。
git remote add origin 指定倉庫的SSH地址 初始化項目。
git push -u origin master 上傳項目到 Github。
詳細演示過程如下:
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 pytoolsXIAOLANZAO+Administrator@xiaolanzao MINGW64 /c/Py_jupyter (master) $ git commit -m "first commit" [master (root-commit) 382fbf4] first commit1 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.gitXIAOLANZAO+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 上已經(jīng)同步過來了。
后面更新代碼再上傳的話只需使用下面的命令就可以了:
git add 項目文件夾 添加項目。
git commit -m "說明" 初始化項目。
git push -u origin master 上傳項目到 Github。
喜歡的點個贊?吧!
總結
以上是生活随笔為你收集整理的Jyputer 项目工程设置Github同步,本地代码上传Github实例演示的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JavaScript 技术篇-通过代码获
- 下一篇: Mac 技术篇-应用程序被锁定无法进行卸