GIt -- Window下配置sublime text git

來源:互聯網
上載者:User

標籤:img   bsp   post   inf   git安裝   ima   rsa   lob   開啟   

全域配置

  1.  git config --global user.name "賬戶名"
  2.  git config --global use r.email ‘賬戶郵箱‘
  3. 產生ssh,命令: ssh-keygen -t rsa 

 

但是在window終端上ssh命令不能用,只能在Git安裝目錄下的開啟git-bash.exe操作,步驟如下:

Git安裝目錄下,

找到 git-bash.exe

 輸入:ssh-keygen -t rsa -C "[email protected]"

Administrator /
$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):  這裡需要你輸入一個密碼,到會串連github需要用到
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match. Try again.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.

然後到你的GIthub上建立ssh

 

然後再git-bush.exe,上輸入以下命令:

# ssh [email protected]

然後 ,會出現 Enter passphrase for key ‘/c/Users/Administrator/.ssh/id_rsa‘:

叫你輸入剛才產生sshkey 時,你輸入的那個密碼

出現以下情況,表示串連成功。

 

GIt -- Window下配置sublime text git

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.