標籤:img bsp post inf git安裝 ima rsa lob 開啟
全域配置
- git config --global user.name "賬戶名"
- git config --global use r.email ‘賬戶郵箱‘
- 產生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