zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Git 技术篇 - GitHub克隆私有仓库方法,新主机绑定并同步github私有库实例演示

2023-03-20 15:38:41 时间

首先看下我克隆我自己私有库的成功效果图。

公有仓库克隆方法。

$ git clone git@github.com:2418546511/Py_jyputer.git

私有仓库克隆方法。

$ git clone https://用户名:密码@github.com/2418546511/Py_jyputer.git

同步私有库演示:

Administrator@DESKTOP-HVAQES8 MINGW64 /c/Py_jupyter (master)
$ git add pytools

Administrator@DESKTOP-HVAQES8 MINGW64 /c/Py_jupyter (master)
$ git config --global user.email "2418546511@qq.com"

Administrator@DESKTOP-HVAQES8 MINGW64 /c/Py_jupyter (master)
$ git config --global user.name "2418546511"

Administrator@DESKTOP-HVAQES8 MINGW64 /c/Py_jupyter (master)
$ git commit -m "4.25test"
[master f0fecd5] 4.25test
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 "pytools/src/346265213350257225git.txt"

Administrator@DESKTOP-HVAQES8 MINGW64 /c/Py_jupyter (master)
$ git push -u origin master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 16 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 407 bytes | 407.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0)
error: RPC failed; curl 7 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date