gitignoreÎļþÐèÒªÌá½»Âð
·ñ£¬gitignore Îļþ²»ÐèÒªÌá½»¡£gitignore ÎļþÓÃÓÚÖ¸¶¨ÄÄЩÎļþ²»ÄÉÈë°æ±¾¿ØÖÆ£¬½ö¹©ÍâµØÅÌËã»úʹÓ㬲»Ó¦½«ÆäÄÉÈë¿ÍÕ»£¬ÒÔÃâÒýÆð³åÍ»¡¢²»ÐëÒªµÄ¸ú×ÙºÍÆÆËð¿ÉÖظ´ÐÔ¡£
gitignore ÎļþÊÇ·ñÐèÒªÌá½»£¿
·ñ£¬gitignore Îļþ²»ÐèÒªÌá½»¡£
Ïêϸ˵Ã÷£º
gitignore ÎļþÊÇÒ»¸öÎı¾Îļþ£¬ÆäÖÐÖ¸¶¨ÁËÌض¨Îļþ»òĿ¼ÎÞÐèÄÉÈë°æ±¾¿ØÖÆ¡£´ËÎļþ¹ØÓÚºöÂÔÖîÈçÈÕÖ¾Îļþ¡¢ÔÝʱÎļþºÍ±à¼Æ÷ÉèÖõȲ»ÐèÒª°æ±¾¿ØÖƵÄÎļþºÜÊÇÓÐÓá£
gitignore Îļþ×Ô¼º²»ÊÇ°æ±¾¿ØÖÆϵͳµÄÒ»²¿·Ö¡£Ëü½ö¹©ÍâµØÅÌËã»úʹÓã¬ÒÔ¸æËß Git ÄÄЩÎļþÓ¦ºöÂÔ¡£µ±Äú½«¸ü¸ÄÍÆË͵½Ô¶³Ì¿Íջʱ£¬gitignore Îļþ²»»á°üÀ¨ÆäÖС£
ÈôÊǽ« gitignore ÎļþÌá½»µ½ÄúµÄ¿ÍÕ»£¬¿ÉÄܻᵼÖÂÎÊÌâ¡£ÕâÊÇÓÉÓÚ£º
- DZÔÚ³åÍ»£ºÈôÊÇ¿ª·¢Ö°Ô±ÔÚËûÃǵÄÍâµØ»úеÉÏʹÓòî±ðµÄ gitignore Îļþ£¬¿ÉÄܻᵼÖ³åÍ»¡£
- ²»ÐëÒªµÄ¸ú×Ù£ºgitignore Îļþ×Ô¼º²¢²»ÊÇÒ»¸öÓмÛÖµµÄÎļþ£¬²»Ó¦½«ÆäÄÉÈë°æ±¾¿ØÖÆ¡£
- ÆÆËð¿ÉÖظ´ÐÔ£º½« gitignore ÎļþÌá½»µ½¿ÍÕ»¿ÉÄÜ»áÆÆËðÆäËû¿ª·¢Ö°Ô±ÔÚ×Ô¼ºµÄÍâµØ»úеÉÏÉèÖÃÏîÄ¿µÄ¿ÉÖظ´ÐÔ¡£
Òò´Ë£¬×î¼Ñ×ö·¨Êǽ« gitignore ÎļþÉúÑÄÔÚ .gitignore ÎļþÖУ¬²¢½«ÆäÌí¼Óµ½ .git/info/exclude ÎļþÖУ¬¸ÃÎļþ²»»á±»Ìá½»µ½¿ÍÕ»¡£
ÒÔÉϾÍÊÇgitignoreÎļþÐèÒªÌá½»ÂðµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡