Git系列三之GitHub使用方法

2021-09-09 02:29:37 字數 1293 閱讀 7737

github 是乙個面向開源及私有

軟體專案的託管平台,因為只支援 git 作為唯一的版本庫格式進行託管,故名 github。

1、https方式:不需要認證

總用量

8drwxr-xr-x 3 root root 4096 5月 8

22:05 bastion-of-machine

-rw-r--r-- 1 root root 15 5月 8

20:25 index.php

2、ssh方式:需要認證

[root@git-node1 demo]# git clone [email protected]:nulige/bastion-of-machine.git

initialized empty git repository

in /root/demo/bastion-of-machine/.git/the authenticity of host

'github.com (192.30.255.112)

' can'

t be established.

rsa key fingerprint is

16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48

.are you sure you want to

continue connecting (yes/no)?yes

warning: permanently added

'github.com,192.30.255.112

'(rsa) to the list of known hosts.

[root@git-node1 demo]#

[root@git-node1 demo]# ll

總用量

8drwxr-xr-x 3 root root 4096 5月 8

21:57 bastion-of-machine

-rw-r--r-- 1 root root 15 5月 8

20:25 index.php

1、把本地倉庫**推到遠端專案倉庫(針對已經存在專案倉庫)

git 以及 github 使用系列

本人打算開始寫乙個有關git 使用,以及github 使用的系列文章了,一來可以自己總結,二來github用好了,可以存放自己的一些知識框架吧。1.準備 有乙個 github上的賬號,windows 10 的作業系統,win10上安裝 git 2.mkdir pork dbobject git in...

(三)github之GIT的匯入

什麼是版本管理?git是一款 分散型版本管理 軟體,提供了開發過程中不可少的功能,例如記錄一款軟體新增或者更改源 的過程,回溯到特定階段,恢復誤刪除的檔案等。集中型 將倉庫集中放在伺服器中,一旦所處環境無法連線伺服器,就無法獲取最新的源 分散型 github將倉庫fork給了每個使用者。事實上即便不...

Git 三)github的使用入門

github 簡明教程 git 簡明指南 ubuntu環境下github安裝與使用 git常用命令 git branch a 檢視當前分支 sudo apt get update sudo apt get install git git config global user.name min git...