XcodeÖÐÔõôÉèÖÃGit
xcodeÊÇmacƽ̨ÉϵÄÒ»¸ö¼¯³É¿ª·¢ÇéÐΣ¨ide£©£¬Ëü°üÀ¨ÁËÒ»Ì×¹¦Ð§Ç¿Ê¢µÄ¹¤¾ß¼¯£¬Ö§³ÖiosºÍmacosÓ¦ÓóÌÐòµÄ¿ª·¢¡£ÔÚ¾ÙÐÐiosºÍmacos¿ª·¢Ê±£¬¾³£»áÓõ½°æ±¾¿ØÖƹ¤¾ßgit£¬Òò´Ë£¬×°ÖÃgitÊÇxcodeÖбز»¿ÉÉÙµÄÒ»²½¡£
±¾ÎĽ«ÏÈÈÝÔõÑùÔÚMacÉÏʹÓÃHomebrew×°ÖÃGit£¬ÒÔ¼°ÔÚXcodeÖÐÉèÖÃGit¡£
×°ÖÃGit
ÒªÁìÒ»£ºÊ¹ÓÃHomebrew×°ÖÃ
HomebrewÊÇMacÉϵÄÈí¼þ°ü¹ÜÀíÆ÷£¬¿ÉÒÔÀû±ãµØ×°ÖúÍÖÎÀíÖÖÖÖÈí¼þ°ü¡£×°ÖÃHomebrewºó£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÔÚÖÕ¶ËÖÐ×°ÖÃGit£º
brew install git
µÇ¼ºó¸´ÖÆ
ÒªÁì¶þ£ºÏÂÔØ×°Öðü×°ÖÃ
ÄãÒ²¿ÉÒÔ´ÓGit¹Ù·½ÍøÕ¾ÏÂÔØ×°Öðü²¢ÊÖ¶¯×°Ö᣻á¼û[https://git-scm.com/download/mac£¬](https://git-scm.com/download/mac)ÏÂÔØ.dmgÎļþ£¬Ë«»÷·¿ª²¢Æ¾Ö¤×°ÖÃÏòµ¼¾ÙÐвÙ×÷¡£
ÉèÖÃGit
ÔÚMacÉÏ×°ÖÃÍê³ÉGitºó£¬ÄãÐèÒªÔÚXcodeÖÐÉèÖÃGit¡£
·¿ªXcode£¬½øÈë¡°Preferences¡±£¨Æ«ºÃÉèÖã©¡£
µã»÷¡°Locations¡±£¬ÕÒµ½¡°Command Line Tools¡±£¬Ñ¡Ôñ×°ÖõÄGit°æ±¾¡£
È»ºó£¬ÔÚÖÕ¶ËÖÐʹÓÃÒÔÏÂÏÂÁîÉèÖÃGitÐÅÏ¢£º
git config --global user.name "Your Name" git config --global user.email "you@example.com"
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬¡°Your Name¡±ÊÇÄãµÄÃû×Ö£¬¡°you@example.com¡±ÊÇÄãµÄµç×ÓÓʼþµØµã¡£Õâ¸öÏÂÁî»áÔÚÈ«¾Ö¹æÄ£ÄÚÉèÖÃGitµÄÓû§ÃûºÍµç×ÓÓʼþ£¬ÒÔ±ãÔÚÌá½»½ÓÂëʱ¾ÙÐбêʶ¡£
µ½´Ë£¬ÄãÒѾÀÖ³É×°ÖúÍÉèÖÃÁËGit£¬²¢¿ÉÒÔÔÚXcodeÖÐʹÓÃGitÀ´ÖÎÀíÄãµÄ´úÂë°æ±¾À²£¡
×ܽá
×°ÖÃGitÊǾÙÐÐiOSºÍmacOSÓ¦ÓóÌÐò¿ª·¢µÄ±Ø±¸°ì·¨¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇÏÈÈÝÁËÁ½ÖÖÔÚMacÉÏ×°ÖÃGitµÄÒªÁ죺ʹÓÃHomebrewºÍÊÖ¶¯ÏÂÔØ×°Öðü¡£Í¬Ê±£¬ÎÒÃÇ»¹ÏòÄãÑÝʾÁËÔõÑùÔÚXcodeÖÐÉèÖÃGit¡£Ï£Íû±¾ÎÄ¿ÉÒÔ×ÊÖúÄã¸üºÃµØÖÎÀíÄãµÄ´úÂë°æ±¾¡£
ÒÔÉϾÍÊÇXcodeÖÐÔõôÉèÖÃGitµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡