

0
0
git×îÐÂwindows°²×°°üv2.14.0ÖÐÎÄÃâ·Ñ°æÊÇÒ»¿î±»¹ã·ºÊ¹Óõķֲ¼Ê½´úÂëÍÐ¹ÜÆ½Ì¨£¬¹¦ÄÜÇ¿´ó¡¢£¬Ê¹Ó÷dz£µÄ·½±ã¡þ£¬Ð¡±àΪ´ó¼Ò´øÀ´windowsƽ̨µÄ°²×°°ü¡þ£¬ÐèÒªµÄÓû§¸Ï¿ìÀ´ÏÂÔØ°É¡£
1. ´Ó·þÎñÆ÷ÉϿˡÍêÕûµÄGit²Ö¿â(°üÀ¨´úÂëºÍ°æ±¾ÐÅÏ¢)µ½µ¥»úÉÏ¡þ¡£
2. ÔÚ×Ô¼ºµÄ»úÆ÷Éϸù¾Ý²»Í¬µÄ¿ª·¢Ä¿µÄ¡þ£¬´´½¨·ÖÖ§£¬Ð޸ĴúÂë¡þ¡£
3. ÔÚµ¥»úÉÏ×Ô¼º´´½¨µÄ·ÖÖ§ÉÏÌá½»´úÂë¡þ¡£
4. ÔÚµ¥»úÉϺϲ¢·ÖÖ§¡£
5. °Ñ·þÎñÆ÷ÉÏ×îаæµÄ´úÂëfetchÏÂÀ´£¬È»ºó¸ú×Ô¼ºµÄÖ÷·ÖÖ§ºÏ²¢¡þ¡£
6. Éú³É²¹¶¡(patch)¡þ£¬°Ñ²¹¶¡·¢Ë͸øÖ÷¿ª·¢Õß¡£
7. ¿´Ö÷¿ª·¢Õߵķ´À¡¡þ£¬Èç¹ûÖ÷¿ª·¢Õß·¢ÏÖÁ½¸öÒ»°ã¿ª·¢ÕßÖ®¼äÓгåÍ»(ËûÃÇÖ®¼ä¿ÉÒÔºÏ×÷½â¾öµÄ³åÍ»)¡þ£¬¾Í»áÒªÇóËûÃÇÏȽâ¾ö³åÍ»£¬È»ºóÔÙÓÉÆäÖÐÒ»¸öÈËÌá½»¡þ¡£Èç¹ûÖ÷¿ª·¢Õß¿ÉÒÔ×Ô¼º½â¾ö¡þ£¬»òÕßûÓгåÍ»£¬¾Íͨ¹ý¡þ¡£
8. Ò»°ã¿ª·¢ÕßÖ®¼ä½â¾ö³åÍ»µÄ·½·¨£¬¿ª·¢ÕßÖ®¼ä¿ÉÒÔʹÓÃpull ÃüÁî½â¾ö³åÍ»£¬½â¾öÍê³åͻ֮ºóÔÙÏòÖ÷¿ª·¢ÕßÌá½»²¹¶¡¡£
1¡¢Git BASHΪWindowsϵͳÌṩÁËÀàËÆLinuxƽ̨µÄÃüÁî»·¾³£¬Óû§¿ÉÒÔÔÚGit BASHÃüÁîÐÐÖÐÔËÐÐGit¡£
2¡¢Git GUIÌṩÁËÓѺõÄͼÐνçÃæ£¬¶ÔÓÚ³õ¼¶Óû§À´ËµÔٺò»¹ýÁË£¬Í¨¹ýGit GUIÄÜÖ±¹Û·½±ãÖ´ÐÐGit BASHµÄÃüÁ²»ÐèÒª¼ÇסÄÇЩ·±ËöµÄÃüÁî¡£
3¡¢Shell IntegrationÊÇWindows ExplorerÍâ¿Ç¼¯³É¹¦ÄÜ£¬¾ÍÊÇÔÚÓÒ¼ü²Ëµ¥Öм¯³ÉÁ˳£ÓõÄGitÃüÁÄÜ£¬·Ç³£·½±ã£¡
1¡¢´´½¨Ð²ֿâ
´´½¨ÐÂÎļþ¼Ð£¬´ò¿ª£¬È»ºóÖ´ÐÐ git initÒÔ´´½¨Ð嵀 git ²Ö¿â¡£
2¡¢¼ì³ö²Ö¿â
Ö´ÐÐÈçÏÂÃüÁîÒÔ´´½¨Ò»¸ö±¾µØ²Ö¿âµÄ¿Ë¡°æ±¾£º
git clone /path/to/repository
Èç¹ûÊÇÔ¶¶Ë·þÎñÆ÷ÉϵIJֿ⣬ÄãµÄÃüÁî»áÊÇÕâ¸öÑù×Ó£º
git clone username@host:/path/to/repository
3¡¢¹¤×÷Á÷
ÄãµÄ±¾µØ²Ö¿âÓÉ git ά»¤µÄÈý¿Ã¡°Ê÷¡±×é³É¡£µÚÒ»¸öÊÇÄãµÄ ¹¤×÷Ŀ¼£¬Ëü³ÖÓÐʵ¼ÊÎļþ¡£
µÚ¶þ¸öÊÇ »º´æÇø(Index)£¬ËüÏñ¸ö»º´æÇøÓò£¬ÁÙʱ±£´æÄãµÄ¸Ä¶¯;×îºóÊÇ HEAD£¬Ö¸ÏòÄã×î½üÒ»´ÎÌá½»ºóµÄ½á¹û¡£
4¡¢Ìí¼ÓÓëÌá½»
Äã¿ÉÒԼƻ®¸Ä¶¯(°ÑËüÃÇÌí¼Óµ½»º´æÇø)£¬Ê¹ÓÃÈçÏÂÃüÁ
git add <filename>
git add *
ÕâÊÇ git »ù±¾¹¤×÷Á÷³ÌµÄµÚÒ»²½;
ʹÓÃÈçÏÂÃüÁîÒÔʵ¼ÊÌá½»¸Ä¶¯
git commit -m "´úÂëÌá½»ÐÅÏ¢"
ÏÖÔÚ£¬ÄãµÄ¸Ä¶¯ÒѾÌá½»µ½ÁËHEAD£¬µ«ÊÇ»¹Ã»µ½ÄãµÄÔ¶¶Ë²Ö¿â¡£
5¡¢ÍÆË͸͝
ÄãµÄ¸Ä¶¯ÏÖÔÚÒѾÔÚ±¾µØ²Ö¿âµÄHEADÖÐÁË¡£Ö´ÐÐÈçÏÂÃüÁîÒÔ½«ÕâЩ¸Ä¶¯Ìá½»µ½Ô¶¶Ë²Ö¿â£º
git push origin master
¿ÉÒÔ°Ñ master »»³ÉÄãÏëÒªÍÆË͵ÄÈκηÖÖ§¡£Èç¹ûÄ㻹ûÓпË¡ÏÖÓвֿ⣬²¢Óû½«ÄãµÄ²Ö¿âÁ¬½Óµ½Ä³¸öÔ¶³Ì·þÎñÆ÷£¬Äã¿ÉÒÔʹÓÃÈçÏÂÃüÁîÌí¼Ó£º
git remote add origin <server>
Èç´ËÄã¾ÍÄܹ»½«ÄãµÄ¸Ä¶¯ÍÆË͵½ËùÌí¼ÓµÄ·þÎñÆ÷ÉÏÈ¥ÁË¡£
6¡¢·ÖÖ§
·ÖÖ§ÊÇÓÃÀ´½«ÌØÐÔ¿ª·¢¾øÔµ¿ªÀ´µÄ¡£ÔÚÄã´´½¨²Ö¿âµÄʱºò£¬master ÊÇ¡°Ä¬Èϵġ±¡£
ÔÚÆäËû·ÖÖ§ÉϽøÐпª·¢£¬Íê³ÉºóÔÙ½«ËüÃǺϲ¢µ½Ö÷·ÖÖ§ÉÏ¡£
´´½¨Ò»¸ö½Ð×ö¡°feature_x¡±µÄ·ÖÖ§£¬²¢Çл»¹ýÈ¥£º
git checkout -b feature_x
Çл»»ØÖ÷·ÖÖ§£º
git checkout master
ÔÙ°Ñн¨µÄ·Ö֧ɾµô£º
git branch -d feature_x
³ý·ÇÄ㽫·ÖÖ§ÍÆË͵½Ô¶¶Ë²Ö¿â£¬²»È»¸Ã·ÖÖ§¾ÍÊÇ ²»ÎªËûÈËËù¼ûµÄ£º
git push origin <branch>
7¡¢¸üÐÂÓëºÏ²¢
Òª¸üÐÂÄãµÄ±¾µØ²Ö¿âÖÁ×îÐ¸Ķ¯£¬Ö´ÐУº
git pull
ÒÔÔÚÄãµÄ¹¤×÷Ŀ¼ÖÐ »ñÈ¡(fetch) ²¢ ºÏ²¢(merge) Ô¶¶ËµÄ¸Ä¶¯¡£
ÒªºÏ²¢ÆäËû·ÖÖ§µ½ÄãµÄµ±Ç°·ÖÖ§(ÀýÈç master)£¬Ö´ÐÐ
git merge <branch>
Á½ÖÖÇé¿öÏ£¬git ¶¼»á³¢ÊÔÈ¥×Ô¶¯ºÏ²¢¸Ä¶¯¡£²»ÐÒµÄÊÇ£¬×Ô¶¯ºÏ²¢²¢·Ç´Î´Î¶¼Äܳɹ¦£¬²¢¿ÉÄܵ¼Ö ³åÍ»(conflicts)¡£
Õâʱºò¾ÍÐèÒªÄãÐÞ¸ÄÕâЩÎļþÀ´ÈËÈâºÏ²¢ÕâЩ ³åÍ»(conflicts) ÁË¡£¸ÄÍêÖ®ºó£¬ÄãÐèÒªÖ´ÐÐÈçÏÂÃüÁîÒÔ½«ËüÃDZê¼ÇΪºÏ²¢³É¹¦£º
git add <filename>
Ôںϲ¢¸Ä¶¯Ö®Ç°£¬Ò²¿ÉÒÔʹÓÃÈçÏÂÃüÁî²é¿´£º
git diff <source_branch> <target_branch>
8¡¢±êÇ©
ÔÚÈí¼þ·¢²¼Ê±´´½¨±êÇ©£¬ÊDZ»ÍƼöµÄ¡£ÕâÊǸö¾ÉÓиÅÄÔÚ SVN ÖÐÒ²ÓС£¿ÉÒÔÖ´ÐÐÈçÏÂÃüÁîÒÔ´´½¨Ò»¸ö½Ð×ö 1.0.0 µÄ±êÇ©£º
git tag 1.0.0 1b2e1d63ff
1b2e1d63ff ÊÇÄãÏëÒª±ê¼ÇµÄÌá½» ID µÄǰ 10 λ×Ö·û¡£Ê¹ÓÃÈçÏÂÃüÁî»ñÈ¡Ìá½» ID£º
git log
ÄãÒ²¿ÉÒÔÓøÃÌá½» ID µÄÉÙһЩµÄǰ¼¸Î»£¬Ö»ÒªËüÊÇΨһµÄ¡£
9¡¢Ìæ»»±¾µØ¸Ä¶¯
¼ÙÈçÄã×ö´íÊÂ(×ÔÈ»£¬ÕâÊDz»¿ÉÄܵÄ)£¬Äã¿ÉÒÔʹÓÃÈçÏÂÃüÁîÌæ»»µô±¾µØ¸Ä¶¯£º
git checkout -- <filename>
´ËÃüÁî»áʹÓà HEAD ÖеÄ×îÐÂÄÚÈÝÌæ»»µôÄãµÄ¹¤×÷Ŀ¼ÖеÄÎļþ¡£ÒÑÌí¼Óµ½»º´æÇøµÄ¸Ä¶¯£¬ÒÔ¼°ÐÂÎļþ£¬¶¼²»ÊÜÓ°Ïì¡£
¼ÙÈçÄãÏëÒª¶ªÆúÄãËùÓеı¾µØ¸Ä¶¯ÓëÌá½»£¬¿ÉÒÔµ½·þÎñÆ÷ÉÏ»ñÈ¡×îеİ汾²¢½«Äã±¾µØÖ÷·ÖÖ§Ö¸Ïòµ½Ëü£º
git fetch origin
git reset --hard origin/master
10¡¢ÓÐÓõÄÌùÊ¿
ÄÚ½¨µÄͼÐλ¯ git£º
gitk
²ÊÉ«µÄ git Êä³ö£º
git config color.ui true
ÏÔʾÀúÊ·¼Ç¼ʱ£¬Ö»ÏÔʾһÐÐ×¢ÊÍÐÅÏ¢£º
git config format.pretty oneline
½»»¥µØÌí¼ÓÎļþÖÁ»º´æÇø£º
git add -i
Use of an empty string as a pathspec element that is used for 'everything matches' is still warned and Git asks users to use a more explicit '.' for that instead. The hope is that existing users will not mind this change, and eventually the warning can be turned into a hard error, upgrading the deprecation into removal of this (mis)feature. That is not scheduled to happen in the upcoming release (yet).
Git now avoids blindly falling back to ".git" when the setup sequence said we are _not_ in Git repository. A corner case that happens to work right now may be broken by a call to die("BUG"). We've tried hard to locate such cases and fixed them, but there might still be cases that need to be addressed--bug reports are greatly appreciated.
The experiment to improve the hunk-boundary selection of textual diff output has finished, and the "indent heuristics" has now become the default.
Git can now be built with PCRE v2 instead of v1 of the PCRE library. Replace USE_LIBPCRE=YesPlease with USE_LIBPCRE2=YesPlease in existing build scripts to build against the new version. As the upstream PCRE maintainer has abandoned v1 maintenance for all but the most critical bug fixes, use of v2 is recommended.
248.9M / 12-08
RTS¼´Ê±Õ½ÂÔ
ÏÂÔØ
248.9M / 12-08
RTS¼´Ê±Õ½ÂÔ
ÏÂÔØ
253.4M / 12-08
RPG½ÇÉ«°çÑÝ
ÏÂÔØ
ÆÞÖÐÃÛ3È«cg´æµµ
ÓÎÏ·¹¤¾ß / 28KB
ÏÂÔØ
1
csgo¿Õ¸ñ¼üÁ¬Ìø½Å±¾ÂÌÉ«Ãâ·Ñ°æ
ÓÎÏ·¹¤¾ß / 564KB
ÏÂÔØ
2
Ò׿ØÍõÎĵµ¼ÓÃÜÈí¼þv2017¹Ù·½°æÂÌÉ«Ãâ·Ñ°æ
Îļþ´¦Àí / 46M
ÏÂÔØ
3
DNF9ÖÜÄêµÚÊ®Ì×Ìì¿Õʱװ²¹¶¡
ÓÎÏ·¹¤¾ß / 1.6M
ÏÂÔØ
4
3456wg¶àѡƤ·ôv10.6¹Ù·½°æ
ÓÎÏ·¹¤¾ß / 2.2M
ÏÂÔØ
5
dnfÒ»¼üÈÎÎñÖúÊÖv0428×îÐÂÃâ·Ñ°æ
ÓÎÏ·¹¤¾ß / 863KB
ÏÂÔØ
6
adobeÇåÀí¹¤¾ß(AdobeCreativeCloudCleanerTool)V2017 ÂÌÉ«°æ
Îļþ´¦Àí / 5.9M
ÏÂÔØ
7
°®ÆÕÉúR230´òÓ¡»úÇåÁãÈí¼þºº»¯°æ
°ì¹«Ñ§Ï° / 1.8M
ÏÂÔØ
8
ÊÓÆµ¡¢Í¼Æ¬È¥Ë®Ó¡´óʦHitPaw Watermark Removerv1.2.1 ÍêÃÀ½âËø°æ
Îļþ´¦Àí / 80.4M
ÏÂÔØ
9
Îļþ°æÈ¨Ð޸Ť¾ßÂÌÉ«°æ
Îļþ´¦Àí / 564KB
ÏÂÔØ
10
140.5M / 09-05
Á¢¼´ÏÂÔØ
76.4M / 03-25
Á¢¼´ÏÂÔØ
55M / 06-05
Á¢¼´ÏÂÔØ
88.7M / 04-13
Á¢¼´ÏÂÔØ
900.9M / 03-02
Á¢¼´ÏÂÔØ
96.2M / 07-06
Á¢¼´ÏÂÔØ
311.2M / 07-06
Á¢¼´ÏÂÔØ
335M / 07-06
Á¢¼´ÏÂÔØ
ǰ³ÌËÆ½õ(Excellent Expectations)
200M / 07-06
Á¢¼´ÏÂÔØ
413.8M / 07-06
Á¢¼´ÏÂÔØ
x8ɳÏ䰲׿Ãâ·Ñ°æ2023¹Ù·½×îаæ
480.3M / 01-03
Á¢¼´ÏÂÔØ
768.9M / 08-19
Á¢¼´ÏÂÔØ
165.4M / 09-05
Á¢¼´ÏÂÔØ
131.8M / 04-13
Á¢¼´ÏÂÔØ
195.6M / 03-03
Á¢¼´ÏÂÔØ
45.6M / 09-08
Á¢¼´ÏÂÔØ
665.2M / 07-06
Á¢¼´ÏÂÔØ
2.84G / 07-06
Á¢¼´ÏÂÔØ
93M / 07-06
Á¢¼´ÏÂÔØ
338.3M / 07-06
Á¢¼´ÏÂÔØ
959.8M / 12-24
Á¢¼´ÏÂÔØ 312M / 07-30
Á¢¼´ÏÂÔØ 1.38G / 07-26
Á¢¼´ÏÂÔØ DZͧΰΰÃÔÖ²Îï´óÕ½½©Ê¬ÔÓ½»°æµçÄÔ°æ
109.8M / 06-03
Á¢¼´ÏÂÔØ 142M / 01-08
Á¢¼´ÏÂÔØ 1.2M / 11-23
Á¢¼´ÏÂÔØ 548.8M / 04-13
Á¢¼´ÏÂÔØ 1.6M / 04-13
Á¢¼´ÏÂÔØ 1.48G / 03-18
Á¢¼´ÏÂÔØ 646.6M / 03-03
Á¢¼´ÏÂÔØ 1.89G / 12-19
Á¢¼´ÏÂÔØ 393.8M / 10-28
Á¢¼´ÏÂÔØ 110.5M / 09-05
Á¢¼´ÏÂÔØ 33.4M / 09-05
Á¢¼´ÏÂÔØ 60M / 04-29
Á¢¼´ÏÂÔØ 254M / 04-25
Á¢¼´ÏÂÔØ 659M / 04-23
Á¢¼´ÏÂÔØ up¶Ôսƽ̨ºÐ×Ó¹Ù·½ÏÂÔØ2023×îаæ
253.4M / 12-08
Á¢¼´ÏÂÔØ 253M / 12-08
Á¢¼´ÏÂÔØ 1.19G / 11-16
Á¢¼´ÏÂÔØ 117.3M / 11-14
Á¢¼´ÏÂÔØ 488.3M / 06-04
Á¢¼´ÏÂÔØ 369M / 09-22
Á¢¼´ÏÂÔØ 181.5M / 09-22
Á¢¼´ÏÂÔØ 201.2M / 09-05
Á¢¼´ÏÂÔØ 248.9M / 12-08
Á¢¼´ÏÂÔØ 248.9M / 12-08
Á¢¼´ÏÂÔØ 100.6M / 03-06
Á¢¼´ÏÂÔØ 148.9M / 03-06
Á¢¼´ÏÂÔØ 1.12G / 07-06
Á¢¼´ÏÂÔØ 126.7M / 02-04
Á¢¼´ÏÂÔØ 1.76G / 09-22
Á¢¼´ÏÂÔØ 1.92G / 04-17
Á¢¼´ÏÂÔØ 201.5M / 04-13
Á¢¼´ÏÂÔØ 7.31G / 07-01
Á¢¼´ÏÂÔØ 94.3M / 07-06
Á¢¼´ÏÂÔØ 2.48G / 07-06
Á¢¼´ÏÂÔØ 7.63G / 07-06
Á¢¼´ÏÂÔØ 1M / 07-06
Á¢¼´ÏÂÔØ 778.1M / 07-06
Á¢¼´ÏÂÔØ 1.40G / 12-19
Á¢¼´ÏÂÔØ 72M / 07-06
Á¢¼´ÏÂÔØ 548.7M / 07-06
Á¢¼´ÏÂÔØ 1.00G / 07-06
Á¢¼´ÏÂÔØ 9.13G / 07-06
Á¢¼´ÏÂÔØ 126.2M / 07-06
Á¢¼´ÏÂÔØ 72M / 07-06
Á¢¼´ÏÂÔØ 105.1M / 07-06
Á¢¼´ÏÂÔØ 132M / 07-06
Á¢¼´ÏÂÔØ 132M / 07-06
Á¢¼´ÏÂÔØ bonbonjump°²×¿¹Ù·½ÏÂÔØ2023×îаæ
13.4M / 01-03
Á¢¼´ÏÂÔØ 293.0M / 09-05
Á¢¼´ÏÂÔØ 1.22G / 07-06
Á¢¼´ÏÂÔØ 20.53G / 07-06
Á¢¼´ÏÂÔØ 229.9M / 07-06
Á¢¼´ÏÂÔØ 3.70G / 07-06
Á¢¼´ÏÂÔØ 904.0M / 07-06
Á¢¼´ÏÂÔØ 15.84G / 07-06
Á¢¼´ÏÂÔØ 45.50G / 07-06
Á¢¼´ÏÂÔØ 1.02G / 07-06
Á¢¼´ÏÂÔØ Copyright 2010-2025 µ¥»úÓÎÏ·ÏÂÔØ (R) °æÈ¨ËùÓÐ ·ÉÏèÏÂÔØËùÓÐÓÎÏ·¼°Èí¼þÏÂÔØ×ÊÔ´À´Ô´»¥ÁªÍø£¬²¢ÓÉÍøÓÑÉÏ´«·ÖÏí¡¢¡£ÈçÓÐÇÖȨ¡¢£¬ÇëÀ´µçÀ´º¯¸æÖ®¡£
·ÉÏèÖҸ棺µÖÖÆ²»Á¼É«Çé¡¢¡¢·´¶¯¡¢¡¢±©Á¦ÓÎÏ· ºÏÀí°²ÅÅÓÎϷʱ¼ä ÏíÊܽ¡¿µÉú»î ¶õ¹«Íø°²±¸£º42011102003115ºÅ ¡¾¶õICP±¸17000818ºÅ-1¡¿