Ubuntu配置github

  1. 本地安裝git
    1.1 安裝命令
sudo apt-get update  
sudo apt-get install git
  1. 初期化
git init
  1. 配置ssh
ssh-keygen -t rsa -C "[email protected]"

在上述操作中需要你輸入密碼,一定要記住你輸入的密碼。待會測試連接的時候需要。
把id_rsa.pub內容添加到github的SSH keys頁面
4. 測試聯通性

ssh -T [email protected]
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章