å¦æä½ çGitæ¯æ¬¡PUSHæä½é½è¦éå¤è¾å
¥å¯ç ï¼æ£æ¥å
¶å®ç设置ä¹æ²¡æé®é¢ï¼é£åå å¾å¤§å¯è½æ¯ä½ å¨çæå¯é¥æ¶è®¾ç½®äºå¯ç ãé常å¯é¥æ¯è¿æ ·çæçï¼
æå¼å½ä»¤è¡ç»ç«¯è¾å
¥ ssh-keygen -t rsa -C "
[email protected]" ( ä½ çé®ç®±)ï¼è¿ç»ç¹å» Enter é®å³å¯ï¼ä¸é´æ示è¾å
¥å¯ç æ¶ä¸è¦è¾å
¥ã
1
2
3
4
5
ssh-keygen -t rsa -b 4096 -C "
[email protected]"
# Creates a new ssh key, using the provided email as a label
# Generating public/private rsa key pair.
Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter] // æ¨è使ç¨é»è®¤å°å
Enter passphrase (empty for no passphrase): //æ¤å¤ç¹å» Enter é®å³å¯ï¼ä¹å¯ä»¥å¡«åå¯ç ï¼ä½å¡«åå¯ç åæ¯æ¬¡ä½¿ç¨ SSH æ¹å¼æ¨é代ç æ¶