linux環境下配置github 遠端倉庫

2021-09-20 17:21:02 字數 899 閱讀 8347

1.設定git使用者和郵箱

git config --global user.name "fujinzhou"

git config --global user.email "[email protected]"

2.生成ssh金鑰

3.在github上新增ssh金鑰

4.測試認證是否成功

[root@localhost data]# ssh -t [email protected]

the authenticity of host 'github.com (192.30.253.113)' 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.253.113' (rsa) to the list of known hosts.

hi fujinzhou! you've successfully authenticated, but github does not provide shell access.

5.轉殖**

git clone ssh:

git pull origin master 從git 拉**

git常用命令

檢視工作狀態、

git status

提交所有**

git add . 

本地提交

git commit -m "test"

提交到遠端

git push origin master

windows下配置ssh訪問github

一直使用https的方式訪問github的 用的時間長了,發現這是效率很低的一種開發行為,因為每次git push的時候都要輸入username和password。今天就介紹如何在windows下配置ssh cd ssh administrator thinkpad ssh ls known hos...

linux下配置php環境

我 文章,可惜忘了出處,這裡對不起作者。新版的老版的還是有些不同的。現在把步驟帖一下 安裝步驟 存至 home tmp目錄 命令列表 cd home tmp rpm ivh mysql 3.23.52 1.i386.rpm 安裝mysql server rpm ivh mysql client 3....

Linux下配置cgi環境

在apche下配置cgi的幾點注意事項 apache載入cgi模組 使用 scriptalias url directory 命令在httpd.conf中將url和存放cgi指令碼的目錄進行對映 儲存檔案重啟伺服器 在用cgi指令碼中,開始必須輸出html文件頭且以文件頭後緊跟換行,否則會出現500...