{"id":35445,"date":"2023-01-18T21:30:29","date_gmt":"2023-01-18T13:30:29","guid":{"rendered":"http:\/\/gulass.cn\/?p=35445"},"modified":"2023-01-18T21:30:52","modified_gmt":"2023-01-18T13:30:52","slug":"git-view","status":"publish","type":"post","link":"https:\/\/gulass.cn\/git-view.html","title":{"rendered":"Git\u56fe\u5f62\u754c\u9762\u7684\u4f7f\u7528"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5982\u679c\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u4e0d\u5c11\u4f7f\u7528 Git \u547d\u4ee4\u884c\u64cd\u4f5c\u7684\u77e5\u8bc6\u3002 \u4f60\u5b66\u4f1a\u4e86\u64cd\u4f5c\u672c\u5730\u6587\u4ef6\uff0c\u901a\u8fc7\u7f51\u7edc\u8fde\u63a5\u4f60\u7684\u4ed3\u5e93\uff0c\u4ee5\u53ca\u4e0e\u4ed6\u4eba\u8fdb\u884c\u6709\u6548\u7387\u7684\u5408\u4f5c\u3002 \u4f46\u662f\u6545\u4e8b\u5e76\u672a\u5c31\u6b64\u7ed3\u675f\uff1bGit \u901a\u5e38\u53ea\u662f\u66f4\u5927\u7684\u751f\u6001\u5708\u7684\u4e00\u90e8\u5206\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4f7f\u7528\u7ec8\u7aef\u5e76\u4e0d\u662f\u6700\u5408\u9002\u7684\u65b9\u5f0f\u3002 \u73b0\u5728\u5c31\u8ba9\u6211\u4eec\u6765\u4e86\u89e3\u4e00\u4e0b\u5982\u4f55\u5728\u5176\u5b83\u7c7b\u578b\u7684\u73af\u5883\u4e2d\u66f4\u597d\u5730\u4f7f\u7528 Git\uff0c\u4ee5\u53ca\u522b\u7684\u5e94\u7528\uff08\u5305\u62ec\u4f60\u7684\uff09\u5982\u4f55\u4e0e Git \u8fdb\u884c\u534f\u4f5c\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u56fe\u5f62\u754c\u9762<\/strong><\/div>\n

Git \u7684\u539f\u751f\u73af\u5883\u662f\u7ec8\u7aef\u3002 \u5728\u90a3\u91cc\uff0c\u4f60\u53ef\u4ee5\u4f53\u9a8c\u5230\u6700\u65b0\u7684\u529f\u80fd\uff0c\u4e5f\u53ea\u6709\u5728\u90a3\u91cc\uff0c\u4f60\u624d\u80fd\u5c3d\u60c5\u53d1\u6325 Git \u7684\u5168\u90e8\u80fd\u529b\u3002 \u4f46\u662f\u5bf9\u4e8e\u67d0\u4e9b\u4efb\u52a1\u800c\u8a00\uff0c\u7eaf\u6587\u672c\u5e76\u4e0d\u662f\u6700\u4f73\u7684\u9009\u62e9\uff1b\u6709\u65f6\u5019\u4f60\u786e\u5b9e\u9700\u8981\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u5c55\u793a\u65b9\u5f0f\uff0c\u800c\u4e14\u6709\u4e9b\u7528\u6237\u66f4\u4e60\u60ef\u90a3\u79cd\u80fd\u70b9\u51fb\u7684\u754c\u9762\u3002<\/p>\n

\u6709\u4e00\u70b9\u8bf7\u6ce8\u610f\uff0c\u4e0d\u540c\u7684\u754c\u9762\u662f\u4e3a\u4e0d\u540c\u7684\u5de5\u4f5c\u6d41\u7a0b\u8bbe\u8ba1\u7684\u3002 \u4e00\u4e9b\u5ba2\u6237\u7aef\u7684\u4f5c\u8005\u4e3a\u4e86\u652f\u6301\u67d0\u79cd\u4ed6\u8ba4\u4e3a\u9ad8\u6548\u7684\u5de5\u4f5c\u6d41\u7a0b\uff0c\u7ecf\u8fc7\u7cbe\u5fc3\u6311\u9009\uff0c\u53ea\u663e\u793a\u4e86 Git \u529f\u80fd\u7684\u4e00\u4e2a\u5b50\u96c6\u3002 \u6bcf\u79cd\u5de5\u5177\u90fd\u6709\u5176\u7279\u5b9a\u7684\u76ee\u7684\u548c\u610f\u4e49\uff0c\u4ece\u8fd9\u4e2a\u89d2\u5ea6\u6765\u770b\uff0c\u4e0d\u80fd\u8bf4\u67d0\u79cd\u5de5\u5177\u6bd4\u5176\u5b83\u7684\u201c\u66f4\u597d\u201d\u3002 \u8fd8\u6709\u8bf7\u6ce8\u610f\uff0c\u6ca1\u6709\u4ec0\u4e48\u4e8b\u60c5\u662f\u56fe\u5f62\u754c\u9762\u5ba2\u6237\u7aef\u53ef\u4ee5\u505a\u800c\u547d\u4ee4\u884c\u5ba2\u6237\u7aef\u4e0d\u80fd\u505a\u7684\uff1b\u547d\u4ee4\u884c\u59cb\u7ec8\u662f\u4f60\u53ef\u4ee5\u5b8c\u5168\u64cd\u63a7\u4ed3\u5e93\u5e76\u53d1\u6325\u51fa\u5168\u90e8\u529b\u91cf\u7684\u5730\u65b9\u3002<\/p>\n

gitk \u548c git-gui<\/strong><\/span><\/div>\n

\u5728\u5b89\u88c5 Git \u7684\u540c\u65f6\uff0c\u4f60\u4e5f\u88c5\u597d\u4e86\u5b83\u63d0\u4f9b\u7684\u53ef\u89c6\u5316\u5de5\u5177\uff0cgitk \u548c git-gui\u3002<\/p>\n

gitk \u662f\u4e00\u4e2a\u5386\u53f2\u8bb0\u5f55\u7684\u56fe\u5f62\u5316\u67e5\u770b\u5668\uff0c\u4f60\u53ef\u4ee5\u628a\u5b83\u5f53\u4f5c\u662f\u57fa\u4e8e git log \u548c git grep \u547d\u4ee4\u7684\u4e00\u4e2a\u5f3a\u5927\u7684\u56fe\u5f62\u64cd\u4f5c\u754c\u9762\uff0c\u5f53\u4f60\u9700\u8981\u67e5\u627e\u8fc7\u53bb\u53d1\u751f\u7684\u67d0\u6b21\u8bb0\u5f55\uff0c\u6216\u662f\u53ef\u89c6\u5316\u67e5\u770b\u9879\u76ee\u5386\u53f2\u7684\u65f6\u5019\uff0c\u4f60\u5c06\u4f1a\u7528\u5230\u8fd9\u4e2a\u5de5\u5177\u3002<\/p>\n

\u4f7f\u7528 Gitk \u7684\u6700\u7b80\u5355\u65b9\u6cd5\u5c31\u662f\u4ece\u547d\u4ee4\u884c\u6253\u5f00\uff0c\u53ea\u9700 cd \u5230\u4e00\u4e2a Git \u4ed3\u5e93\uff0c\u7136\u540e\u952e\u5165\uff1a<\/p>\n

$ gitk [git log options]<\/pre>\n

Gitk \u53ef\u4ee5\u63a5\u53d7\u5f88\u591a\u547d\u4ee4\u884c\u9009\u9879\uff0c\u5176\u4e2d\u7684\u5927\u90e8\u5206\u90fd\u76f4\u63a5\u4f20\u7ed9\u5e95\u5c42\u7684 git log \u53bb\u6267\u884c\u4e86\u3002 --all\u53ef\u80fd\u662f\u8fd9\u5176\u4e2d\u6700\u6709\u7528\u7684\u4e00\u4e2a, \u5b83\u544a\u8bc9 gitk \u53bb\u5c3d\u53ef\u80fd\u5730\u4ece\u4efb\u4f55\u5f15\u7528\u67e5\u627e\u63d0\u4ea4\u5e76\u663e\u793a\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u4ece HEAD\uff0cGitk \u7684\u754c\u9762\u770b\u8d77\u6765\u957f\u8fd9\u6837<\/p>\n

\"`gitk`<\/p>\n

gitk \u5386\u53f2\u67e5\u770b\u5668<\/strong><\/p>\n

\u8fd9\u5f20\u56fe\u770b\u8d77\u6765\u5c31\u548c\u6267\u884c git log --graph\u547d\u4ee4\u7684\u8f93\u51fa\u5dee\u4e0d\u591a\uff1b\u6bcf\u4e2a\u70b9\u4ee3\u8868\u4e00\u6b21\u63d0\u4ea4\uff0c\u7ebf\u4ee3\u8868\u7236\u5b50\u5173\u7cfb\uff0c\u800c\u5f69\u8272\u7684\u65b9\u5757\u5219\u7528\u6765\u6807\u793a\u4e00\u4e2a\u4e2a\u5f15\u7528\u3002 \u9ec4\u70b9\u8868\u793a HEAD\uff0c\u7ea2\u70b9\u8868\u793a\u5c1a\u672a\u63d0\u4ea4\u7684\u672c\u5730\u53d8\u52a8\u3002 \u4e0b\u65b9\u7684\u7a97\u53e3\u7528\u6765\u663e\u793a\u5f53\u524d\u9009\u4e2d\u7684\u63d0\u4ea4\u7684\u5177\u4f53\u4fe1\u606f\uff1b\u8bc4\u8bba\u548c\u8865\u4e01\u663e\u793a\u5728\u5de6\u4fa7\uff0c\u6458\u8981\u663e\u793a\u5728\u53f3\u4fa7\u3002 \u4e2d\u95f4\u5219\u662f\u4e00\u7ec4\u7528\u6765\u641c\u7d22\u5386\u53f2\u7684\u63a7\u4ef6\u3002<\/p>\n

\u4e0e\u4e4b\u76f8\u6bd4\uff0cgit-gui \u5219\u4e3b\u8981\u662f\u4e00\u4e2a\u7528\u6765\u5236\u4f5c\u63d0\u4ea4\u7684\u5de5\u5177\u3002 \u6253\u5f00\u5b83\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u4e5f\u662f\u4ece\u547d\u4ee4\u884c\u542f\u52a8\uff1a<\/p>\n

$ git gui<\/pre>\n

\u5b83\u7684\u754c\u9762\u957f\u8fd9\u4e2a\u6837\u5b50\uff1a<\/p>\n

\"`git-gui`<\/p>\n

git-gui \u63d0\u4ea4\u5de5\u5177<\/strong><\/p>\n

\u5de6\u4fa7\u662f\u7d22\u5f15\u533a\uff1b\u672a\u6682\u5b58\u7684\u4fee\u6539\u663e\u793a\u5728\u4e0a\u65b9\uff0c\u5df2\u6682\u5b58\u7684\u4fee\u6539\u663e\u793a\u5728\u4e0b\u65b9\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u6587\u4ef6\u540d\u5de6\u4fa7\u7684\u56fe\u6807\u6765\u5c06\u8be5\u6587\u4ef6\u5728\u6682\u5b58\u72b6\u6001\u4e0e\u672a\u6682\u5b58\u72b6\u6001\u4e4b\u95f4\u5207\u6362\uff0c\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u9009\u4e2d\u4e00\u4e2a\u6587\u4ef6\u540d\u6765\u67e5\u770b\u5b83\u7684\u8be6\u60c5\u3002<\/p>\n

\u53f3\u4fa7\u7a97\u53e3\u7684\u4e0a\u65b9\u4ee5 diff \u683c\u5f0f\u6765\u663e\u793a\u5f53\u524d\u9009\u4e2d\u6587\u4ef6\u53d1\u751f\u4e86\u53d8\u52a8\u7684\u5730\u65b9\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u53f3\u51fb\u67d0\u4e00\u533a\u5757\u6216\u884c\u4ece\u800c\u5c06\u8fd9\u4e00\u533a\u5757\u6216\u884c\u653e\u5165\u6682\u5b58\u533a\u3002<\/p>\n

\u53f3\u4fa7\u7a97\u53e3\u7684\u4e0b\u65b9\u662f\u5199\u65e5\u5fd7\u548c\u6267\u884c\u64cd\u4f5c\u7684\u5730\u65b9\uff0c\u5728\u6587\u672c\u6846\u4e2d\u952e\u5165\u65e5\u5fd7\u7136\u540e\u70b9\u51fb \u201c\u63d0\u4ea4\u201d \u5c31\u548c\u6267\u884c git commit \u7684\u6548\u679c\u5dee\u4e0d\u591a\u3002\u5982\u679c\u4f60\u60f3\u8981\u4fee\u8ba2\u4e0a\u4e00\u6b21\u63d0\u4ea4, \u53ef\u4ee5\u9009\u4e2d\u201c\u4fee\u8ba2\u201d \u6309\u94ae\uff0c\u4e0a\u6b21\u4e00\u63d0\u4ea4\u7684\u5185\u5bb9\u5c31\u4f1a\u663e\u793a\u5728 \u201c\u6682\u5b58\u533a\u201d\u3002 \u7136\u540e\u4f60\u5c31\u53ef\u4ee5\u7b80\u5355\u7684\u5bf9\u4fee\u6539\u8fdb\u884c\u6682\u5b58\u548c\u53d6\u6d88\u6682\u5b58\u64cd\u4f5c\uff0c\u66f4\u65b0\u63d0\u4ea4\u65e5\u5fd7\uff0c\u7136\u540e\u518d\u6b21\u70b9\u51fb \u201c\u63d0\u4ea4\u201d \u7528\u8fd9\u4e2a\u65b0\u7684\u63d0\u4ea4\u6765\u8986\u76d6\u4e0a\u4e00\u6b21\u63d0\u4ea4\u3002<\/p>\n

gitk \u548c git-gui \u5c31\u662f\u9488\u5bf9\u67d0\u79cd\u4efb\u52a1\u8bbe\u8ba1\u7684\u5de5\u5177\u7684\u4e24\u4e2a\u4f8b\u5b50\uff0c\u5b83\u4eec\u5206\u522b\u4e3a\u4e86\u4e0d\u540c\u7684\u76ee\u7684\uff08\u5373\u67e5\u770b\u5386\u53f2\u548c\u5236\u4f5c\u63d0\u4ea4\uff09\u800c\u8fdb\u884c\u4e86\u7cbe\u7b80\uff0c\u7565\u53bb\u4e86\u7528\u4e0d\u5230\u7684\u529f\u80fd\u3002<\/p>\n

Mac \u548c Windows \u4e0a\u7684 GitHub \u5ba2\u6237\u7aef<\/strong><\/div>\n

GitHub \u53d1\u5e03\u4e86\u4e24\u4e2a\u9762\u5411\u5de5\u4f5c\u6d41\u7a0b\u7684 Git \u5ba2\u6237\u7aef\uff1aWindows \u7248\uff0c\u548c Mac \u7248\u3002 \u5b83\u4eec\u5f88\u597d\u7684\u5c55\u793a\u4e86\u4e00\u4e2a\u9762\u5411\u5de5\u4f5c\u6d41\u7a0b\u7684\u5de5\u5177\u5e94\u8be5\u662f\u4ec0\u4e48\u6837\u5b50\u2014\u2014\u4e13\u6ce8\u4e8e\u63d0\u5347\u90a3\u4e9b\u5e38\u7528\u7684\u529f\u80fd\u53ca\u5176\u534f\u4f5c\u7684\u53ef\u7528\u6027\uff0c\u800c\u4e0d\u662f\u5b9e\u73b0 Git \u7684\u6240\u6709\u529f\u80fd\uff0c\u5b83\u4eec\u770b\u8d77\u6765\u957f\u8fd9\u4e2a\u6837\u5b50\uff1a<\/p>\n

\"GitHub<\/p>\n

GitHub Mac \u5ba2\u6237\u7aef<\/strong><\/p>\n

\"GitHub<\/p>\n

GitHub Windows \u5ba2\u6237\u7aef<\/strong><\/p>\n

\u6211\u4eec\u5728\u8bbe\u8ba1\u7684\u65f6\u5019\u5c31\u52aa\u529b\u5c06\u4e8c\u8005\u7684\u5916\u89c2\u548c\u64cd\u4f5c\u4f53\u9a8c\u90fd\u4fdd\u6301\u4e00\u81f4\uff0c\u56e0\u6b64\u672c\u7ae0\u4f1a\u628a\u4ed6\u4eec\u5f53\u505a\u540c\u4e00\u4e2a\u4ea7\u54c1\u6765\u4ecb\u7ecd\u3002 \u6211\u4eec\u5e76\u4e0d\u4f1a\u8be6\u7ec6\u5730\u4ecb\u7ecd\u8be5\u5de5\u5177\u7684\u6bcf\u4e00\u4e2a\u529f\u80fd\uff08\u56e0\u4e3a\u5b83\u4eec\u672c\u8eab\u4e5f\u6709\u6587\u6863\uff09\uff0c\u4f46\u8bf7\u5feb\u901f\u4e86\u89e3\u4e00\u4e0b \u201c\u53d8\u66f4\u201d \u7a97\u53e3\uff08\u4f60\u5927\u90e8\u5206\u65f6\u95f4\u90fd\u4f1a\u82b1\u5728\u4f7f\u7528\u8be5\u7a97\u53e3\u4e0a\uff09\u7684\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n

  • \u5de6\u4fa7\u662f\u6b63\u5728\u8ffd\u8e2a\u7684\u4ed3\u5e93\u7684\u5217\u8868\uff1b\u901a\u8fc7\u70b9\u51fb\u5de6\u4e0a\u65b9\u7684 \u201c+\u201d \u56fe\u6807\uff0c\u4f60\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a\u9700\u8981\u8ffd\u8e2a\u7684\u4ed3\u5e93\uff08\u65e2\u53ef\u4ee5\u662f\u901a\u8fc7 clone\uff0c\u4e5f\u53ef\u4ee5\u4ece\u672c\u5730\u6dfb\u52a0\uff09\u3002<\/li>\n
  • \u4e2d\u95f4\u662f\u8f93\u5165-\u63d0\u4ea4\u533a\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u8f93\u5165\u63d0\u4ea4\u65e5\u5fd7\uff0c\u4ee5\u53ca\u9009\u62e9\u54ea\u4e9b\u6587\u4ef6\u9700\u8981\u88ab\u63d0\u4ea4\u3002\uff08\u5728 Windows \u4e0a\uff0c\u63d0\u4ea4\u5386\u53f2\u5c31\u663e\u793a\u5728\u8fd9\u4e2a\u533a\u57df\u7684\u4e0b\u65b9\uff1b\u5728 Mac \u4e0a\uff0c\u63d0\u4ea4\u5386\u53f2\u6709\u4e00\u4e2a\u5355\u72ec\u7684\u7a97\u53e3\uff09<\/li>\n
  • \u53f3\u4fa7\u662f\u4fee\u6539\u67e5\u770b\u533a\uff0c\u5b83\u4f1a\u544a\u8bc9\u4f60\u5de5\u4f5c\u76ee\u5f55\u91cc\u54ea\u4e9b\u4e1c\u897f\u88ab\u4fee\u6539\u4e86\uff08\u8bd1\u6ce8\uff1a\u4fee\u6539\u6a21\u5f0f\uff09\uff0c\u6216\u9009\u4e2d\u7684\u63d0\u4ea4\u91cc\u5305\u62ec\u4e86\u54ea\u4e9b\u4fee\u6539\uff08\u8bd1\u6ce8\uff1a\u5386\u53f2\u6a21\u5f0f\uff09\u3002<\/li>\n
  • \u6700\u540e\u9700\u8981\u719f\u6089\u7684\u662f\u53f3\u4e0a\u89d2\u7684 \u201cSync\u201d \u6309\u94ae\uff0c\u4f60\u4e3b\u8981\u901a\u8fc7\u8fd9\u4e2a\u6309\u94ae\u6765\u8fdb\u884c\u7f51\u7edc\u4e0a\u7684\u4ea4\u4e92\u3002<\/li>\n

    NOTE\uff1a<\/span>\u4f60\u4e0d\u9700\u8981\u6ce8\u518c GitHub \u8d26\u53f7\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u3002 \u5c3d\u7ba1\u5b83\u4eec\u662f\u6309\u7167 GitHub \u63a8\u8350\u7684\u5de5\u4f5c\u6d41\u7a0b\u6765\u8bbe\u8ba1\u7684\uff0c\u5e76\u7a81\u51fa\u63d0\u5347\u4e86\u4e00\u4e9b GitHub \u7684\u670d\u52a1\u4f53\u9a8c\uff0c\u4f46\u5b83\u4eec\u53ef\u4ee5\u5728\u4efb\u4f55 Git \u4ed3\u5e93\u4e0a\u5de5\u4f5c\u826f\u597d\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u8fde\u63a5\u5230\u4efb\u610f Git \u4e3b\u673a\u3002<\/p>\n

    \u5b89\u88c5<\/strong><\/span><\/div>\n

    GitHub \u7684 Windows \u5ba2\u6237\u7aef\u53ef\u4ee5\u4ece https:\/\/windows.github.com<\/span> \u4e0b\u8f7d\uff0cMac \u5ba2\u6237\u7aef\u53ef\u4ee5\u4ece https:\/\/mac.github.com<\/span> \u4e0b\u8f7d\u3002 \u7b2c\u4e00\u6b21\u6253\u5f00\u8f6f\u4ef6\u65f6\uff0c\u5b83\u4f1a\u5f15\u5bfc\u4f60\u8fdb\u884c\u4e00\u7cfb\u5217\u7684\u9996\u6b21\u4f7f\u7528\u8bbe\u7f6e\uff0c\u4f8b\u5982\u8bbe\u7f6e\u4f60\u7684\u59d3\u540d\u548c\u7535\u5b50\u90ae\u4ef6\uff0c\u5b83\u8fd8\u4f1a\u667a\u80fd\u5730\u5e2e\u4f60\u8c03\u6574\u4e00\u4e9b\u5e38\u7528\u7684\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u4f8b\u5982\u51ed\u8bc1\u7f13\u5b58\u548c CRLF \u7684\u5904\u7406\u65b9\u5f0f\u3002<\/p>\n

    \u5b83\u4eec\u90fd\u662f\u201c\u7eff\u8272\u8f6f\u4ef6\u201d\u2014\u2014\u5982\u679c\u8f6f\u4ef6\u6253\u5f00\u53d1\u73b0\u6709\u66f4\u65b0\uff0c\u4e0b\u8f7d\u548c\u5b89\u88c5\u5347\u7ea7\u5305\u90fd\u662f\u5728\u540e\u53f0\u5b8c\u6210\u7684\uff0c\u4e3a\u65b9\u4fbf\u8d77\u89c1\u5b83\u4eec\u8fd8\u6253\u5305\u4e86\u4e00\u4efd Git\uff0c\u4e5f\u5c31\u662f\u8bf4\u4f60\u4e00\u65e6\u5b89\u88c5\u597d\u5c31\u518d\u4e5f\u65e0\u9700\u52b3\u5fc3\u5347\u7ea7\u7684\u4e8b\u60c5\u4e86\u3002 Windows \u7684\u5ba2\u6237\u7aef\u8fd8\u63d0\u4f9b\u4e86\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u542f\u52a8\u88c5\u4e86 Posh-git \u63d2\u4ef6\u7684 Powershell\uff0c\u5728\u672c\u7ae0\u7684\u540e\u9762\u4e00\u8282\u6211\u4eec\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u65b9\u9762\u7684\u5185\u5bb9\u3002<\/p>\n

    \u63a5\u4e0b\u6765\u6211\u4eec\u7ed9\u5b83\u8bbe\u7f6e\u4e00\u4e9b\u5de5\u4f5c\u4ed3\u5e93\u3002 \u5ba2\u6237\u7aef\u4f1a\u663e\u793a\u4f60\u5728 GitHub \u4e0a\u6709\u6743\u9650\u64cd\u4f5c\u7684\u4ed3\u5e93\u7684\u5217\u8868\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4e00\u4e2a\u7136\u540e\u4e00\u952e\u514b\u9686\u3002 \u5982\u679c\u4f60\u672c\u5730\u5df2\u7ecf\u5efa\u7acb\u4e86\u4ed3\u5e93\uff0c\u53ea\u9700\u8981\u7528\u9f20\u6807\u628a\u5b83\u4ece Finder \u6216 Windows \u8d44\u6e90\u7ba1\u7406\u5668\u62d6\u8fdb GitHub \u5ba2\u6237\u7aef\u7a97\u53e3\uff0c\u5c31\u53ef\u4ee5\u628a\u8be5\u4ed3\u5e93\u6dfb\u52a0\u5230\u5de6\u4fa7\u7684\u4ed3\u5e93\u5217\u8868\u91cc\u9762\u53bb\u4e86\u3002<\/p>\n

    \u63a8\u8350\u7684\u5de5\u4f5c\u6d41\u7a0b<\/strong><\/span><\/div>\n

    \u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u4ee5\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528 GitHub \u5ba2\u6237\u7aef\u6765\u6267\u884c\u4e00\u4e9b\u5e38\u89c1\u7684 Git \u4efb\u52a1\u3002 \u8be5\u5de5\u5177\u6240\u63a8\u8350\u7684\u5de5\u4f5c\u6d41\u7a0b\u6709\u65f6\u4e5f\u88ab\u53eb\u505a \u201cGitHub \u6d41\u201d\u3002 \u6211\u4eec\u5728 GitHub \u6d41\u7a0b \u4e00\u8282\u4e2d\u5bf9\u6b64\u6709\u8be6\u7ec6\u7684\u4ecb\u7ecd\uff0c\u5176\u8981\u70b9\u662f (a) \u4f60\u4f1a\u63d0\u4ea4\u5230\u4e00\u4e2a\u5206\u652f\uff1b(b) \u4f60\u9700\u8981\u7ecf\u5e38\u4e0e\u8fdc\u7a0b\u4ed3\u5e93\u4fdd\u6301\u540c\u6b65\u3002<\/p>\n

    \u4e24\u4e2a\u5e73\u53f0\u4e0a\u7684\u5ba2\u6237\u7aef\u5728\u5206\u652f\u7ba1\u7406\u4e0a\u6709\u6240\u4e0d\u540c\u3002 \u5728 Mac \u4e0a\uff0c\u521b\u5efa\u5206\u652f\u7684\u6309\u94ae\u5728\u7a97\u53e3\u7684\u4e0a\u65b9\uff1a<\/p>\n

    \"Mac<\/p>\n

    Mac \u4e0a\u7684\u201c\u521b\u5efa\u5206\u652f\u201d\u6309\u94ae<\/strong><\/p>\n

    \u5728 Windows \u4e0a\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5728\u5206\u652f\u5207\u6362\u6302\u4ef6\u4e2d\u8f93\u5165\u65b0\u5206\u652f\u7684\u540d\u79f0\u6765\u5b8c\u6210\u521b\u5efa\uff1a<\/p>\n

    \"\u5728<\/p>\n

    \u5728 Windows \u4e0a\u521b\u5efa\u5206\u652f<\/strong><\/p>\n

    \u5206\u652f\u521b\u5efa\u597d\u4ee5\u540e\uff0c\u65b0\u5efa\u63d0\u4ea4\u5c31\u53d8\u5f97\u975e\u5e38\u7b80\u5355\u76f4\u63a5\u4e86\u3002 \u73b0\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u505a\u4e00\u4e9b\u4fee\u6539\uff0c\u7136\u540e\u5207\u6362\u5230 GitHub \u5ba2\u6237\u7aef\u7a97\u53e3\uff0c\u4f60\u6240\u505a\u7684\u4fee\u6539\u5c31\u4f1a\u663e\u793a\u5728\u90a3\u91cc\u3002 \u8f93\u5165\u63d0\u4ea4\u65e5\u5fd7\uff0c\u9009\u4e2d\u90a3\u4e9b\u9700\u8981\u88ab\u5305\u542b\u5728\u672c\u6b21\u63d0\u4ea4\u4e2d\u7684\u6587\u4ef6\uff0c\u7136\u540e\u70b9\u51fb \u201c\u63d0\u4ea4\u201d \u6309\u94ae\uff08\u4e5f\u53ef\u4ee5\u5728\u952e\u76d8\u4e0a\u6309 ctrl-enter \u6216 \u2318-enter\uff09\u3002<\/p>\n

    \u201c\u540c\u6b65\u201d \u529f\u80fd\u662f\u4f60\u5728\u7f51\u7edc\u4e0a\u548c\u5176\u5b83\u4ed3\u5e93\u4ea4\u4e92\u7684\u4e3b\u8981\u9014\u5f84\u3002 push\uff0cfetch\uff0cmerge\uff0c\u548c rebase \u5728 Git \u5185\u90e8\u662f\u4e00\u8fde\u4e32\u72ec\u7acb\u7684\u64cd\u4f5c, \u800c GitHub \u5ba2\u6237\u7aef\u5c06\u8fd9\u4e9b\u64cd\u4f5c\u90fd\u5408\u5e76\u6210\u4e86\u5355\u72ec\u4e00\u4e2a\u529f\u80fd\u3002 \u4f60\u70b9\u51fb\u540c\u6b65\u6309\u94ae\u65f6\u5b9e\u9645\u4e0a\u4f1a\u53d1\u751f\u5982\u4e0b\u8fd9\u4e9b\u64cd\u4f5c\uff1a<\/p>\n

  • git pull --rebase\u3002 \u5982\u679c\u4e0a\u8ff0\u547d\u4ee4\u7531\u4e8e\u5b58\u5728\u5408\u5e76\u51b2\u7a81\u800c\u5931\u8d25\uff0c\u5219\u4f1a\u9000\u800c\u6267\u884c git pull --no-rebase\u3002<\/li>\n
  • git push\u3002<\/li>\n

    \u5982\u679c\u4f60\u9075\u5faa\u63a8\u8350\u7684\u5de5\u4f5c\u6d41\u7a0b\uff0c\u4ee5\u4e0a\u5c31\u662f\u6700\u5e38\u7528\u7684\u4e00\u7cfb\u5217\u547d\u4ee4\uff0c\u56e0\u6b64\u5c06\u5b83\u4eec\u5408\u5e76\u4e3a\u4e00\u4e2a\u8ba9\u4e8b\u60c5\u7b80\u5355\u4e86\u5f88\u591a\u3002<\/p>\n

    \u5c0f\u7ed3<\/strong><\/span><\/div>\n

    \u8fd9\u4e9b\u5de5\u5177\u662f\u4e3a\u5176\u5404\u81ea\u9488\u5bf9\u7684\u5de5\u4f5c\u6d41\u7a0b\u6240\u91cf\u8eab\u5b9a\u505a\u7684\uff0c\u5f00\u53d1\u8005\u548c\u975e\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u5206\u5206\u949f\u5185\u5c31\u642d\u5efa\u8d77\u9879\u76ee\u534f\u4f5c\u73af\u5883\uff0c\u5b83\u4eec\u8fd8\u5185\u7f6e\u4e86\u5176\u5b83\u8f85\u52a9\u6700\u4f73\u5b9e\u8df5\u7684\u529f\u80fd\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u7684\u5de5\u4f5c\u6d41\u7a0b\u6709\u6240\u4e0d\u540c\uff0c\u6216\u8005\u4f60\u9700\u8981\u5728\u8fdb\u884c\u7f51\u7edc\u64cd\u4f5c\u65f6\u6709\u66f4\u591a\u7684\u63a7\u5236\uff0c\u90a3\u4e48\u5efa\u8bae\u4f60\u8003\u8651\u4e00\u4e0b\u5176\u5b83\u5ba2\u6237\u7aef\u6216\u8005\u4f7f\u7528\u547d\u4ee4\u884c\u3002<\/p>\n

    \u5176\u5b83\u56fe\u5f62\u754c\u9762<\/strong><\/div>\n

    \u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u6709\u8bb8\u8bb8\u591a\u591a\u5176\u5b83\u7684\u56fe\u5f62\u5316 Git \u5ba2\u6237\u7aef\uff0c\u5176\u4e2d\u65e2\u6709\u5355\u4e00\u529f\u80fd\u7684\u5b9a\u5236\u5de5\u5177\uff0c\u4e5f\u6709\u8bd5\u56fe\u63d0\u4f9b Git \u6240\u6709\u529f\u80fd\u7684\u590d\u6742\u5e94\u7528\u3002 Git \u7684\u5b98\u65b9\u7f51\u7ad9\u6574\u7406\u4e86\u4e00\u4efd\u65f6\u4e0b\u6700\u6d41\u884c\u7684\u5ba2\u6237\u7aef\u7684\u6e05\u5355 http:\/\/git-scm.com\/downloads\/guis<\/span>\u3002 \u5728 Git \u7684\u7ef4\u57fa\u7ad9\u70b9\u8fd8\u53ef\u4ee5\u770b\u5230\u4e00\u4efd\u66f4\u5168\u7684\u6e05\u5355 https:\/\/git.wiki.kernel.org\/index.php\/Interfaces,_frontends,_and_tools#Graphical_Interfaces<\/span><\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/git-scm.com\/book\/zh\/v2\/\u5176\u5b83\u73af\u5883\u4e2d\u7684-Git-\u56fe\u5f62\u754c\u9762<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1ahttp:\/\/gulass.cn\/git-view.html<\/a>\u7f16\u8f91\uff1a\u738b\u8f89\uff0c\u5ba1\u6838\u5458\uff1a\u5cb3\u6c38<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u5bfc\u8bfb \u5982\u679c\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u4e0d\u5c11\u4f7f\u7528 Git \u547d\u4ee4\u884c\u64cd\u4f5c\u7684\u77e5\u8bc6\u3002 \u4f60\u5b66\u4f1a\u4e86\u64cd\u4f5c\u672c\u5730\u6587\u4ef6\uff0c\u901a\u8fc7\u7f51\u7edc\u8fde\u63a5\u4f60\u7684\u4ed3\u5e93\uff0c\u4ee5\u53ca\u4e0e […]<\/p>\n","protected":false},"author":63,"featured_media":35447,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-35445","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/35445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=35445"}],"version-history":[{"count":18,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/35445\/revisions"}],"predecessor-version":[{"id":262377,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/35445\/revisions\/262377"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/35447"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=35445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=35445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=35445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}