×ðÁú¿­Ê±

gitÔõôÐÞ¸ÄÎļþȨÏÞ

ÔÚʹÓÃgit¾ÙÐдúÂëÖÎÀíµÄÀú³ÌÖÐ £¬ÓÐʱ¼äÐèÒªÐÞ¸ÄÎļþȨÏÞ¡£ÎļþȨÏÞÖ¸µÄÊÇÎļþµÄ¶Á¡¢Ð´¡¢Ö´ÐÐȨÏÞ £¬¿ÉÒÔͨ¹ýchmodÏÂÁîÀ´Ð޸ġ£

µ±ÐèÒªÐÞ¸ÄGit¿ÍÕ»ÖеÄij¸öÎļþµÄȨÏÞʱ £¬¿ÉÒÔͨ¹ýÒÔÏ°취À´Íê³É£º

½øÈë¸ÃÎļþËùÔÚµÄĿ¼ £¬Ê¹ÓÃlsÏÂÁîÉó²éÎļþµÄȨÏÞ¡£ÀýÈç £¬ÈôÊÇÐèÒªÐÞ¸Äfoo.txtÎļþµÄȨÏÞ £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ

cd path/to/foo.txt
ls -l

µÇ¼ºó¸´ÖÆ

ƾ֤lsÏÂÁîÊä³öЧ¹û £¬È·¶¨ÐèÒªÐ޸ĵÄȨÏÞÀàÐͺͶÔÓ¦µÄȨÏÞÖµ¡£ÎļþµÄȨÏÞÀàÐÍ°üÀ¨¶Á¡¢Ð´¡¢Ö´ÐÐ £¬¶ÔÓ¦µÄȨÏÞÖµ»®·ÖΪr¡¢w¡¢x¡£ÀýÈç £¬ÈôÊÇÐèÒª½«foo.txtÎļþµÄËùÓÐÕߣ¨owner£©µÄдȨÏÞ£¨w£©È¥µô £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ

chmod u-w foo.txt

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬uÌåÏÖËùÓÐÕß £¬wÌåÏÖдȨÏÞ £¬-ÌåÏÖÈ¥µô¸ÃȨÏÞ¡£

ÈôÊÇÐèÒªÉèÖÃ×飨group£©»òÆäËûÓû§£¨others£©µÄȨÏÞ £¬¿ÉÒÔʹÓÃg»òoÀ´ÌåÏÖ¡£ÀýÈç £¬ÈôÊÇÐèÒª¸ø×éÓû§¼ÓÉ϶ÁȨÏÞ £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ

chmod g+r foo.txt

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬gÌåÏÖ×éÓû§ £¬rÌåÏÖ¶ÁȨÏÞ £¬+ÌåÏÖÔöÌí¸ÃȨÏÞ¡£

ÈôÊÇÐèҪͬʱÐ޸Ķà¸öÎļþµÄȨÏÞ £¬¿ÉÒÔʹÓÃͨÅä·û£¨*£©À´Æ¥ÅäÎļþÃû»òÕßĿ¼Ãû¡£ÀýÈç £¬ÈôÊÇÐèÒª½«Ä³¸öĿ¼ÏÂËùÓеÄ.htmlÎļþµÄ¶ÁȨÏÞºÍдȨÏÞ¼ÓÉÏ £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ

chmod u+rw path/to/*.html

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬uÌåÏÖËùÓÐÕß £¬+ÌåÏÖÔöÌíȨÏÞ £¬rwÌåÏÖ¶ÁдȨÏÞ¡£

ÐÞ¸ÄÍêÎļþȨÏÞºó £¬¿ÉÒÔʹÓÃlsÏÂÁîÀ´ÑéÖ¤ÐÞ¸ÄЧ¹ûÊÇ·ñÇкÏÔ¤ÆÚ¡£ÀýÈç £¬Ê¹ÓÃÒÔÏÂÏÂÁîÑéÖ¤foo.txtÎļþȨÏÞÊÇ·ñֻʣÏÂÁ˶ÁºÍÖ´ÐÐȨÏÞ£º

ls -l foo.txt

µÇ¼ºó¸´ÖÆ

ÒÔÉϾÍÊÇͨ¹ýGitÐÞ¸ÄÎļþȨÏ޵İ취¡£ÐèҪעÖصÄÊÇ £¬ÐÞ¸ÄGit¿ÍÕ»ÖеÄÎļþȨÏÞ²¢²»»á×Ô¶¯Í¬²½µ½ÆäËû·ÖÖ§»òÆäËûÊÂÇéÇø £¬Òò´ËÐèҪȷ±£ËùÓеÄÐ޸Ķ¼±»×¼È·Ìá½»µ½Git¿ÍÕ»ÖÐ £¬ÒÔ±ã¾ÙÐкóÐøµÄ´úÂëÖÎÀí¡£

ÒÔÉϾÍÊÇgitÔõôÐÞ¸ÄÎļþȨÏÞµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿