gitÔõô»¹ÔÐ޸ĵÄÎļþ
ÔÚÒ»Ñùƽ³£µÄ¿ª·¢Àú³ÌÖУ¬ÎÒÃǾ³£ÐèÒª¶Ô´úÂë¾ÙÐÐÐ޸ģ¬È»¶øÓÐʱ¼äÎÒÃÇ»á³ö´í£¬°Ñ´úÂë¸ÄµÃ²»¿Éµ¼Ö³ÌÐòÍ߽⡣Õâ¸öʱ¼äÔõô°ìÄØ£¿Æñ·ÇÒ»¶¨ÒªÖØÐÂдһ±éÂ𣿲»±Ø׿±£¬gitÌṩÁË»¹ÔÐ޸ĵÄÎļþµÄ¹¦Ð§£¬ÏÂÃæ¾ÍÈÃÎÒÃÇÀ´¿´Ò»ÏÂÔõÑùʹÓá£
µÚÒ»²½£ºÉó²éÒÑÐ޸ĵÄÎļþ
ÔÚ¶Ô´úÂë¾ÙÐÐÐ޸ĺó£¬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´Éó²éÄÄЩÎļþÒѾ±»Ð޻ڸģº
git status
µÇ¼ºó¸´ÖÆ
ÔÚÕâ¸öÏÂÁîµÄÊä³öЧ¹ûÀÎÒÃÇ¿ÉÒÔ¿´µ½ËùÓб»Ð޻ڸĵÄÎļþ£¬Õâ¸öʱ¼äÎÒÃÇÐèÒª½«Ä³¸öÎļþ»¹Ô»Ø֮ǰÐ޸ĵÄ״̬¡£
µÚ¶þ²½£º»¹ÔÐ޸ĵÄÎļþ
ʹÓÃÒÔÏÂÏÂÁîÀ´»¹ÔÒ»¸öÒѾ±»Ð޸ĵÄÎļþ£º
git checkout ÎļþÃû
µÇ¼ºó¸´ÖÆ
×¢ÖØ£¬ÔÚʹÓÃÕâ¸öÏÂÁîʱÐèÒªÉóÉ÷£¬×èÖ¹Îó²Ù×÷µ¼Ö´úÂëɥʧ¡£Ö´ÐÐÖ®ºó£¬ÎÒÃÇ¿ÉÒÔÔÚʹÓÃgit statusÉó²éÒ»ÏÂÎļþÄ¿½ñµÄ״̬£¬ÈôÊÇÀֳɻ¹Ô£¬Ó¦¸Ã»á·ºÆðÀàËÆÓÚ¡°nothing added to commit but untracked files present¡±µÄÌáÐÑ¡£
µÚÈý²½£ºÌá½»»¹ÔµÄÐÞ¸Ä
ʹÓÃÒÔÏÂÏÂÁîÀ´½«»¹ÔµÄÐÞ¸ÄÌá½»µ½ÍâµØgit¿â£º
git add ÎļþÃû git commit -m "»¹ÔÐ޸ĵÄÎļþ"
µÇ¼ºó¸´ÖÆ
ÔÚÕâÀïÎÒÃÇ¿ÉÒÔ½«»¹ÔµÄÐÞ¸Ä×÷Ϊһ´ÎÌá½»¡£ËäÈ»£¬ÈôÊÇ»¹ÐèÒª¶ÔÎļþ¾ÙÐнøÒ»²½µÄÐ޸ģ¬¿ÉÒÔÖ±½ÓÔÚ»¹ÔÖ®ºó¾ÙÐС£
×îºó£¬ÎÒÃÇÐèҪעÖصÄÊÇ£¬git»¹ÔµÄÊÇÎļþµÄÐ޸Ķø²»ÊÇɾ³ý£¬»»¾ä»°Ëµ£¬ÈôÊÇÎÒÃǽ«Ò»¸öÎļþɾ³ýÁË£¬ÏëÒª»Ö¸´ÐèҪʹÓÃÆäËûµÄÏÂÁî¡£ÔÚʹÓÃgit»¹ÔÀú³ÌÖУ¬ÎÒÃÇͬÑùҪעÖØ×èÖ¹Îó²Ù×÷£¬²»È»»áÆÆËðÎÒÃǵĴúÂë¿â£¬µ¼ÖÂÖݪֲ»¿ÉÔ¤ÁϵÄÎÊÌâ¡£
ÒÔÉϾÍÊÇgitÔõô»¹ÔÐ޸ĵÄÎļþµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡