ÔõÑùÔÚGithubÉÏÐ޸ĴúÂë
githubÊÇÏÖÔÚÈ«Çò×î´óµÄ³ÌÐòÔ±É罻ƽ̨£¬ËüµÄ±£´æÊÇΪÁËÀû±ã³ÌÐòÔ±Ö®¼äµÄ½»Á÷ºÍÏàÖú¡£ÔÚgithubÉÏ£¬³ÌÐòÔ±ÃÇ¿ÉÒÔÅäºÏ´´Á¢´úÂë¿â£¬·ÖÏí¿ª·ÅÔ´´úÂ룬¾ÙÐÐÏàÖú¿ª·¢µÈµÈ¡£¶øÐ޸ĴúÂëÊÇgithubÖÐ×îΪ»ù´¡Ò²×îΪÖ÷ÒªµÄ¹¦Ð§Ö®Ò»¡£ÔÚÕâƪÎÄÕÂÖУ¬ÎÒÃǽ«ÏÈÈÝÔõÑùÔÚgithubÉÏÐ޸ĴúÂë¡£
Ò»¡¢Github Fork
Github ForkµÄ¹¦Ð§ÊÇ»ùÓÚGitµÄ·ÖÖ§¹¦Ð§£¬¼´´ÓËûÈ˵ĿÍÕ»Öи´ÖÆÒ»¸öµ½×Ô¼ºµÄÕË»§Ï¡£Forkºó£¬¸Ã¿ÍÕ»¼´Îª×Ô¼ºËùÓУ¬²¢¿É×ÔÓÉÐ޸ġ£ÕâÖÖ²Ù×÷³ÆΪ¡°ÅÉÉú¡±¡£
ÔõÑù²Ù×÷ForkÄØ£¿°ì·¨ÈçÏ£º
1.ÔÚ±ðÈ˵ĿÍÕ»Àïµã»÷Fork£¬¼´¿É½«¸Ã¿ÍÕ»ÅÉÉúµ½×Ô¼ºµÄÕË»§Ï¡£
2.½øÈëµ½×Ô¼ºµÄÕË»§À¿ÉÒÔ¿´µ½ÊʲÅFork³öµÄ¿ÍÕ»¡£
3.µã»÷½øÈëµ½¸Ã¿ÍÕ»£¬´Ëʱ¼´¿É¶ÔÆä¾ÙÐÐÐ޸ġ£
¶þ¡¢Github Clone
ÔÚForkÖ®ºó£¬ÎÒÃÇÐèÒª½«´úÂëcloneÖÁÍâµØ¾ÙÐÐÐ޸ġ£°ì·¨ÈçÏ£º
1.ÔÚ×Ô¼ºµÄ¿ÍÕ»ÀïÕÒµ½Clone or DownloadÕâ¸ö°´Å¥£¬µã»÷·ºÆðÄÚÀïµÄÁ´½Ó£¨SSH»òHTTPS¶¼¿ÉÒÔ£¬ÕâÓëGithub¿ÍÕ»ÖÐÊÇ·ñÌí¼ÓÁ˹«Ô¿ÓйØϵ£©¡£
2.·¿ªÖնˣ¬Ö´ÐÐÈçÏÂÏÂÁgit clone [¸Õ¸Õ¸´ÖƳöÀ´µÄÁ´½ÓµØµã]¡£
3.ÆÚ´ýÏÂÔØÍê³Éºó¼´¿É¡£
Èý¡¢Github Push
ÔÚÍê³ÉÁËÍâµØÐ޸ĺó£¬ÎÒÃÇÐèÒª½«Ð޸ĵÄÄÚÈÝÍÆËÍÖÁGithubÉÏ£¬¹©ÆäËûÈ˾ÙÐÐÉó²éºÍʹÓá£
1.ʹÓÃgit add °ÑÐ޸ĵÄÄÚÈݼÓÈëµ½GitµÄ»º´æÇøÖС£
2.ʹÓÃgit commitÏÂÁî°Ñ»º´æÇøÖеÄÄÚÈÝÌá½»µ½ÍâµØ¿ÍÕ»¡£
3.ʹÓÃgit pushÏÂÁî°ÑÍâµØ¿ÍÕ»ÖеÄÄÚÈÝÍÆË͵½×Ô¼ºµÄGithub¿ÍÕ»ÖС£
ËÄ¡¢Github Pull Request
ÔÚ½«ÐÞ¸ÄÍÆË͵½×Ô¼ºµÄGithub¿ÍÕ»Öкó£¬ÎÒÃÇÐèÒªÏòÔ¿ÍÕ»ÇëÇóºÏ²¢ÎÒÃÇËù×öµÄÐ޸ġ£Õâ¸öÀú³Ì³ÆΪGithub Pull Request¡£
°ì·¨ÈçÏ£º
1.½øÈëµ½×Ô¼ºµÄGithub¿ÍÕ»ÖУ¬ÕÒµ½Pull Requests£¬µã»÷New pull requestн¨Ò»¸öºÏ²¢ÇëÇó¡£
2.ÔÚCreate pull requestÒ³Ã棬ѡÔñ×Ô¼ºÐ޸ĵķÖÖ§ºÍ±»ºÏ²¢µÄ·ÖÖ§£¬Ð´Ã÷ÎÊÌâºÍÏêϸÐÎò¡£
3.Ìá½»ºÏ²¢ÇëÇóºó£¬ÆÚ´ýÔ¿ÍÕ»ÖÎÀíÔ±¾ÙÐвÙ×÷¡£
Îå¡¢Github Merge
×îºó£¬ÈôÊÇÔ¿ÍÕ»ÖÎÀíÔ±¿´µ½ÁËÄãµÄºÏ²¢ÇëÇ󣬲¢ÒÔΪÄãËù×öµÄÐ޸ĺܺ㬾ͿÉÒÔ¾ÙÐкϲ¢²Ù×÷¡£Õâ¸ö²Ù×÷³ÆΪGithub Merge£¬ÌåÏÖ½«Ð޸ĺϲ¢µ½Ô¿ÍÕ»ÖС£
°ì·¨ÈçÏ£º
1.ÖÎÀíÔ±½øÈëµ½Ô¿ÍÕ»µÄPull RequestsÀïÉó²éºÏ²¢ÇëÇó¡£
2.¼ì²éÇëÇóÄÚÈݺʹúÂ룬ÈôÊÇÒÔΪûÓÐÎÊÌâ¾ÍÔ޳ɺϲ¢¡£
3.ºÏ²¢²Ù×÷Íê³Éºó£¬ÐµĴúÂë¼´ÒѾºÏ²¢µ½ÁËÔ¿ÍÕ»ÖС£
Õâ¾ÍÊÇGithubÉÏÐ޸ĴúÂëµÄÍêÕûÁ÷³Ì¡£ËäÈ»£¬Ã¿¸ö°ì·¨ÖÐÉÐÓÐÐí¶àϸ½ÚºÍÌØÊâÇéÐÎÐèҪעÖØ¡£Ï£Íû±¾ÎÄÄܹ»×ÊÖú³õѧÕßÕÆÎÕGithubµÄ»ù±¾Ê¹Óã¬Í¨¹ýGithub¾ÙÐиüºÃµÄ´úÂëÏàÖúºÍ·ÖÏí¡£
ÒÔÉϾÍÊÇÔõÑùÔÚGithubÉÏÐ޸ĴúÂëµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡