åå¦ç°å¨æ们ç¨Eclipseæ°å»ºäºä¸ä¸ªjavaå·¥ç¨ï¼æ们æ³æå®æ管å°GitHubä¸é¢è¿è¡çæ¬æ§å¶ï¼è¯¥å¦ä½æä½å¢ï¼éè¿TortoiseGitå¯ä»¥æ¹ä¾¿å°å°ä¸ä¸ªæ¬å°å·¥ç¨ä¸ä¼ å°GitHubä¸æ们æ°å»ºçæ个ä»åºä¸ï¼ä¸é¢å°±ç»å¤§å®¶ä»ç»ä¸ä¸å ·ä½çæä½æ¥éª¤ã
å设æ们çjavaå·¥ç¨æ¾å¨ç®å½D:\\Testä¸ï¼é£ä¹æ们è¿å ¥Testæ件夹ä¸ï¼å³é®èåç¹å»ãGit Create repository hereãï¼è¿æ¶å¼¹åºä¸ä¸ªå¯¹è¯æ¡è¦æ们éæ©æ¯å¦å¾éãMake it Bareãï¼å¦æå¾éä¸çè¯è¡¨ç¤ºæ们å¨å½åç®å½ä¸åªægitçrepositoryæ件夹åæ件ï¼ä»£ç å·¥ä½åºå¨å¦å¤çå°æ¹ï¼ä¹å°±æ¯è¯´gitçä»åºä¿¡æ¯å代ç æ¯åå¼å¨ä¸åçå°æ¹ï¼å¦æä¸å¾éãMake it Bareãçè¯ï¼gitçä»åºå代ç æ¯å¤å¨åä¸ä¸ªç®å½ä¸è¿è¡ç®¡çãå¨è¿éæä¸å¾éãMake it Bareãï¼å建å®ä»¥åç®å½ä¸å¤äºä¸ªéèçæ件夹.gitï¼éé¢åæ¾äºgitä»åºçä¿¡æ¯ã
2
æ¥ä¸æ¥æ们é ç½®ä¸ä¸Gitçç¨æ·åé®ç®±ä¿¡æ¯ï¼å³é®ãTortoiseGitãââãSettingsãï¼å¨å¼¹åºçSettingsçªä½ä¸éæ©ãGitãèç¹ï¼ç¶åå¨User Infoä¸å¯ä»¥è®¾ç½®NameåEmailï¼ç¹å»ãåºç¨ãå³å¯ã
3
å¨Testç®å½ä¸å³é®ãGit Commit -> masterã,å¼¹åºãCommitãçªä½ï¼å¨ãMessageãåºåä¸å¡«åå¤æ³¨ä¿¡æ¯ï¼ç¶åå¨ãChanges madeãä¸å¾éä¸è¦æ交çæ件ï¼ç¶åç¹å»ãCommit&Pushãæé®ï¼å¼¹åºãPushãçªä½ã
4
å¨ãPushãçªä½ä¸ï¼Refåºå表示æ们æ¬å°çä»åºä»£ç ï¼Destinationåºå表示è¦æ¨éå°çç®æ ä»åºãLocalä¸çmaster表示æ¬å°ä»åºç主åæ¯ï¼ç¹å»Remoteå³è¾¹çãManageãæé®ï¼è¿è¡è¿ç¨ä»åºä¿¡æ¯ç设置ã
5
å¨å¼¹åºçãSettingsãçªä½ä¸ï¼éä¸ãGitãââãRemoteãèç¹ï¼å¨å³ä¾§åºåä¸ï¼Remoteä¸è¡¨ç¤ºæ们ç»å¯ä»¥ç»æ们è¦æ¨é代ç çè¿ç¨ä»åºèµ·ä¸ä¸ªå«åï¼å¨è¿éæ们å«åoriginï¼URLæ¯æ们GitHubä»åºçSSHå°åï¼å¨ãPutty Keyãä¸æ们éæ©ä¹åç¨TortoiseGitä¸çå·¥å ·puttygen.exeçæçprivate keyã设置å®è¿äºä»¥åç¹å»ãåºç¨ãæé®ï¼ç¶åç¹å»ãç¡®å®ãæé®ã
6
é 置好è¿ç¨ä»åºçä¿¡æ¯åï¼æ们å¨ãPushãçªä½ä¸ç¹å»ãOKãæé®ï¼æåå¨æ交çªä½çä¿¡æ¯ä¸åºç°ãSuccess..ãçä¿¡æ¯ï¼è¡¨ç¤ºæ们已ç»å°æ¬å°çjavaå·¥ç¨æåå°ä¸ä¼ å°äºGitHubçä»åºä¸ï¼æ¥ä¸æ¥æ们就å¯ä»¥å©ç¨gitæ¥å¯¹è¯¥å·¥ç¨è¿è¡çæ¬æ§å¶äºã
END