{"id":37375,"date":"2023-10-04T01:46:33","date_gmt":"2023-05-19T21:56:10","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/"},"modified":"2024-05-04T02:42:49","modified_gmt":"2024-05-03T18:42:49","slug":"git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/","title":{"rendered":"Git \u547d\u4ee4\u901f\u67e5\u8868"},"content":{"rendered":"<h1>\u524d\u8a00<\/h1>\n<p>\u4ee5\u4e0b\u662fDMM WEBCAMP Advent Calendar 2023\u7b2c14\u5929\u7684\u6587\u7ae0\u3002<\/p>\n<p>\u8bf7\u4e00\u5b9a\u67e5\u770b\u5176\u4ed6\u6587\u7ae0\uff0c\u56e0\u4e3aDWC\u5bfc\u5e08\u548c\u6bd5\u4e1a\u751f\u4eec\u90fd\u5728\u53d1\u5e03\u6587\u7ae0\u3002<\/p>\n<h1>\u9996\u5148<\/h1>\n<p>\u8fd9\u91cc\u6311\u9009\u4e86\u7ecf\u5e38\u4f7f\u7528\u7684\u547d\u4ee4\u8fdb\u884c\u4ecb\u7ecd\u3002<br \/>\n\u56e0\u6b64\uff0c\u8bf7\u4f7f\u7528man\u547d\u4ee4\u7b49\u81ea\u884c\u67e5\u8be2\u5176\u4ed6\u547d\u4ee4\u3002<\/p>\n<h2>Git\u7684\u8bbe\u7f6e<\/h2>\n<div>\n<div class=\"post-table\">\u30b3\u30de\u30f3\u30c9\u89e3\u8aac\u88dc\u8db3git config &#8211;listgit\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8d<br \/>\ngit config &#8211;global user.name &#8220;{name}&#8221;user\u540d\u306e\u8a2d\u5b9a<br \/>\ngit config &#8211;global user.email &#8220;{email}&#8221;email\u306e\u8a2d\u5b9a<br \/>\ngit config &#8211;global initdefaultBranch {\u30d6\u30e9\u30f3\u30c1\u540d}\u30c7\u30d5\u30a9\u30eb\u30c8\u30d6\u30e9\u30f3\u30c1\u540d\u306e\u8a2d\u5b9a<br \/>\ngit config &#8211;global core.autocrlf {bool\u5024}\u6539\u884c\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u5909\u63db\u6a5f\u80fd\u306e\u8a2d\u5b9atrue: \u81ea\u52d5\u5909\u63dbON<br \/>\nfalse: \u81ea\u52d5\u5909\u63dbOFFgit config &#8211;global color.ui {bool\u5024}\u30b3\u30de\u30f3\u30c9\u306e\u8272\u3092\u8a2d\u5b9a\u3059\u308btrue: \u3044\u3044\u611f\u3058\u306b\u8272\u3092\u51fa\u3057\u3066\u304f\u308c\u308b<br \/>\nfalse: \u8272\u3092\u4ed8\u3051\u3066\u304f\u308c\u306a\u3044<\/div>\n<\/div>\n<h2>\u9879\u76ee\u83b7\u53d6\u548c\u521b\u5efa<\/h2>\n<div>\n<div class=\"post-table\">\u30b3\u30de\u30f3\u30c9\u89e3\u8aac\u88dc\u8db3git init\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210<br \/>\ngit clone {URL}\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97URL\u306fSSH\uff0cHTTP\u3069\u3061\u3089\u3067\u3082\u53ef<\/div>\n<\/div>\n<h2>\u5feb\u7167\u64cd\u4f5c<\/h2>\n<div>\n<div class=\"post-table\">\u30b3\u30de\u30f3\u30c9\u89e3\u8aac\u88dc\u8db3git add {file&#8230;}\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u7a7a\u767d\u3067\u533a\u5207\u308a\uff0c\u8907\u6570\u9078\u629e\u53efgit add {file_path}\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3067\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u7fa4\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0<code>git add .<\/code>\u30b3\u30de\u30f3\u30c9<br \/>\n\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u3059\u3079\u3066\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u304d\u308bgit status\u30ef\u30fc\u30ad\u30f3\u30b0\u30c4\u30ea\u30fc\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3<br \/>\n<code>-s<\/code>: \u7c21\u6f54\u306b\u78ba\u8a8d\u3059\u308bgit diff {branch1} {branch2}branch1\u3068branch2\u306e\u5dee\u5206\u78ba\u8a8d<br \/>\ngit log\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u306e\u78ba\u8a8d<br \/>\ngit commit\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3092\u4f5c\u6210\u3059\u308b\u57fa\u672c\u7684\u306b\uff0c<code>git commit -m \"{\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8}\"<\/code>\u3068\u3044\u3046\u5f62\u3067\u5b9f\u884c\u3059\u308bgit restore {file}add\u3055\u308c\u3066\u3044\u306a\u3044\u5909\u66f4\u3092\u53d6\u308a\u6d88\u3059add\u3055\u308c\u3066\u3044\u308b\u5909\u66f4\u3082\u53d6\u308a\u6d88\u3059\u5834\u5408\u306f\uff0c<code>--staged\u30aa\u30d7\u30b7\u30e7\u30f3<\/code>\u3092\u4ed8\u3051\uff0c\u5b9f\u884c\u3059\u308bgit revert {commit}\u6307\u5b9a\u3057\u305f\u30b3\u30df\u30c3\u30c8\u3068\u9006\u306e\u5185\u5bb9\u3092\u30b3\u30df\u30c3\u30c8\u3059\u308b<br \/>\ngit reset &#8211;soft {commit}\u30b3\u30df\u30c3\u30c8\u3092\u524a\u9664\u3059\u308b\u30b3\u30df\u30c3\u30c8\u3060\u3051\u6d88\u3048\u308b<br \/>\nHEAD^\u306e\u6307\u5b9a\u3092\u3059\u308b\u3068\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u524a\u9664\u3067\u304d\u308bgit reset &#8211;mixed {commit}\u30b3\u30df\u30c3\u30c8\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3092\u524a\u9664\u3059\u308badd, commit\u304c\u6d88\u3048\u308bgit reset &#8211;hard {commit}\u30b3\u30df\u30c3\u30c8\uff0c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\uff0c\u4f5c\u696d\u3092\u524a\u9664\u3059\u308b\u5168\u90e8\u6d88\u3048\u307e\u3059\uff01<br \/>\n\u3053\u308c\u3092\u4f7f\u3046\u969b\u306b\u306f\uff0c\u30d7\u30c3\u30b7\u30e5\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u306e\u307f\uff0c\u4f7f\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\uff01git reflogHEAD\u306e\u52d5\u304d\u306e\u5c65\u6b74\u78ba\u8a8d\u30df\u30b9\u3063\u3066reset &#8211;hard\u3057\u305f\u3068\u304d\u306b\uff0creset &#8211;hard\u3067\u9593\u9055\u3048\u305f\u30b3\u30df\u30c3\u30c8\u307e\u3067reflog\u306e\u5c65\u6b74\u304b\u3089\u623b\u308d\u3046\uff01<br \/>\n\uff08\u5909\u66f4\u5185\u5bb9\u3092\u30b3\u30df\u30c3\u30c8\u3057\u3066\u306a\u304b\u3063\u305f\u3089\u7d50\u5c40\uff0c\u5909\u66f4\u5185\u5bb9\u6d88\u3048\u3066\u308b\u3088\uff0e\uff0e\uff0e\uff09git rm {file}\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u30d5\u30a1\u30a4\u30eb\u3092\u5fa9\u5143\u3057\u305f\u3044\u5834\u5408\u306f\uff0c<code>git restore<\/code>\u3092\u4f7f\u3046git mv {file}\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\uff0c\u540d\u524d\u5909\u66f4<br \/>\ngit blame {file}\u30d5\u30a1\u30a4\u30eb\u306e\u4fee\u6b63\u7b87\u6240\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u3068\u4f5c\u6210\u8005\u3092\u8868\u793a\u3059\u308b\u30d0\u30c3\u30c8\u30b3\u30fc\u30c9\u72af\u4eba\u635c\u3057\u30b3\u30de\u30f3\u30c9git stash\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u72b6\u614b\u3092\u4fdd\u5b58\u3057\u3066\uff0c\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092HEAD\u30b3\u30df\u30c3\u30c8\u306b\u5408\u308f\u305b\u308b\u901a\u5e38\uff0c`git stash save &#8220;{message}&#8221;\u306e\u3088\u3046\u306b\uff0c\u30e1\u30c3\u30bb\u30fc\u30b8\u4ed8\u304d\u3067\u5909\u66f4\u3092\u9000\u907f\u3059\u308bgit stash -u\u672a\u8ffd\u8de1\u30d5\u30a1\u30a4\u30eb\u3082\u542b\u3081\u3066\u5909\u66f4\u3092\u9000\u907f<br \/>\ngit stash list\u9000\u907f\u3057\u305f\u5909\u66f4\u306e\u4e00\u89a7\u78ba\u8a8d<br \/>\ngit stash pop\u6700\u65b0\u306e\u9000\u907f\u3092\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\u3057\uff0c\u30ea\u30b9\u30c8\u304b\u3089\u524a\u9664<br \/>\ngit stash apply &#8216;{list_num}&#8217;\u6307\u5b9a\u3055\u308c\u305f\u9000\u907f\u3092\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\u3057\uff0c\u30ea\u30b9\u30c8\u306b\u6b8b\u3059\u756a\u53f7\u6307\u5b9a\u306a\u3057\u306f\uff0c\u6700\u65b0\u306e\u3082\u306e\u304c\u5bfe\u8c61git stash show &#8216;{list_num}&#8217;\u6307\u5b9a\u3055\u308c\u305f\u9000\u907f\u3068\u306e\u5dee\u5206\u78ba\u8a8d<br \/>\ngit drop &#8216;{list_num}&#8217;\u6307\u5b9a\u3055\u308c\u305f\u9000\u907f\u3092\u524a\u9664\u756a\u53f7\u6307\u5b9a\u306a\u3057\u306f\uff0c\u6700\u65b0\u306e\u3082\u306e\u304c\u5bfe\u8c61git stash clear\u3059\u3079\u3066\u306e\u9000\u907f\u3092\u524a\u9664<\/div>\n<\/div>\n<h2>\u5206\u652f\u64cd\u4f5c<\/h2>\n<div>\n<div class=\"post-table\">\u30b3\u30de\u30f3\u30c9\u89e3\u8aac\u88dc\u8db3git branch\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u78ba\u8a8d\u30aa\u30d7\u30b7\u30e7\u30f3\u89e3\u8aac<br \/>\n-r: \u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u78ba\u8a8d<br \/>\n-a: \u3059\u3079\u3066\u306e\u30d6\u30e9\u30f3\u30c1\u78ba\u8a8d<br \/>\n-vv: \u89aa\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8dgit branch {new_branch_name}\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210-d: \u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664<br \/>\n-m: \u30d6\u30e9\u30f3\u30c1\u540d\u5909\u66f4git switch {branch}\u6307\u5b9a\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u306b\u79fb\u52d5\u30d6\u30e9\u30f3\u30c1\u79fb\u52d5\u306bcheckout\u306f\u4f7f\u3046\u306a\uff01git checkout {branch}\u6307\u5b9a\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u306b\u79fb\u52d5-b: \u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3066\u305d\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u79fb\u52d5git checkout {commit}\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u72b6\u614b\u3092\u6307\u5b9a\u3057\u305f\u30b3\u30df\u30c3\u30c8\u306e\u72b6\u614b\u306b\u3059\u308b\u305f\u3060\u3057\uff0cdetached HEAD\u72b6\u614b\u306b\u306a\u308b\u308a\uff0c\u30d6\u30e9\u30f3\u30c1\u304b\u3089\u5207\u308a\u96e2\u3055\u308c\u308b\uff0e<br \/>\n\u305d\u306e\u305f\u3081\uff0c\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u305f\u3044\u5834\u5408\u306f\uff0c<code>git checkout -b {new_branch} {commit}<\/code>\u3092\u5b9f\u884c\u3059\u308bgit merge {branch}\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\uff0c\u6307\u5b9a\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u306e\u5185\u5bb9\u3092\u53d6\u308a\u8fbc\u3080\u3068\u3044\u3046\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30d6\u30e9\u30f3\u30c1\u306e\u69cb\u9020\u306b\u6c17\u3092\u4ed8\u3051\u3088\u3046\uff01git rebase {base_branch}\u6307\u5b9a\u30d6\u30e9\u30f3\u30c1\u306e\u5909\u66f4\u5185\u5bb9\u3092\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\u3059\u308b\u6307\u5b9a\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u306b\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u5185\u5bb9\u3092\u53cd\u6620\u3055\u305b\u305f\u3044\u5834\u5408\u306b\u306f\uff0c<br \/>\n<code>git switch {base_branch}<\/code><br \/>\n<code>git merge {rebase_branch}<\/code><\/div>\n<\/div>\n<h2>\u8fdc\u7a0b\u64cd\u4f5c<\/h2>\n<div>\n<div class=\"post-table\">\u30b3\u30de\u30f3\u30c9\u89e3\u8aac\u88dc\u8db3git fetch {remote_branch}\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u6307\u5b9a\u30d6\u30e9\u30f3\u30c1\u306e\u60c5\u5831\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\ngit fetch &#8211;all\u30ea\u30e2\u30fc\u30c8\u306e\u3059\u3079\u3066\u306e\u60c5\u5831\u3092\u53d6\u5f97<br \/>\ngit pull {remote_name} {remote_branch}\u6307\u5b9a\u3057\u305f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u60c5\u5831\u3092\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8fetch\u3068merge\u304c\u540c\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\uff0c\u5b9f\u884c\u306b\u306f\u6ce8\u610f\uff01<br \/>\ngit\u306e\u52d5\u4f5c\u304c\u3088\u304f\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u3068\u304d\u306f\uff0c\u7d20\u76f4\u306bfetch, merge\u3092\u5206\u3051\u3066\u4f7f\u304a\u3046\uff01git push {remote_name} {branch}\u6307\u5b9a\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u306e\u60c5\u5831\u3092\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u3059\u308b-u\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3068\uff0c\u6b21\u304b\u3089\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u306bpush\u3059\u308b\u3068\u304d\u306f\uff0cgit push\u3060\u3051\u3067\u3088\u304f\u306a\u308bgit remote add {new_remote_name} {remote_URL}\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u540d\u524d\u3092\u4ed8\u3051\u308badd\u306e\u90e8\u5206\u3092rename, remove\u306b\u3059\u308b\u3068\uff0c\u305d\u308c\u305e\u308c\u540d\u524d\u306e\u5909\u66f4\uff0c\u524a\u9664\u3092\u5b9f\u884c\u3067\u304d\u308bgit remote -v\u30ea\u30e2\u30fc\u30c8\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8d<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u4ee5\u4e0b\u662fDMM WEBCAMP Advent Calendar 2023\u7b2c14\u5929\u7684\u6587\u7ae0\u3002 \u8bf7\u4e00\u5b9a\u67e5\u770b\u5176\u4ed6\u6587 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37375","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git \u547d\u4ee4\u901f\u67e5\u8868 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/git-\u547d\u4ee4\u901f\u67e5\u8868\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git \u547d\u4ee4\u901f\u67e5\u8868\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u4ee5\u4e0b\u662fDMM WEBCAMP Advent Calendar 2023\u7b2c14\u5929\u7684\u6587\u7ae0\u3002 \u8bf7\u4e00\u5b9a\u67e5\u770b\u5176\u4ed6\u6587 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git-\u547d\u4ee4\u901f\u67e5\u8868\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-19T21:56:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T18:42:49+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/\",\"name\":\"Git \u547d\u4ee4\u901f\u67e5\u8868 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-19T21:56:10+00:00\",\"dateModified\":\"2024-05-03T18:42:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git \u547d\u4ee4\u901f\u67e5\u8868\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git \u547d\u4ee4\u901f\u67e5\u8868 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/git-\u547d\u4ee4\u901f\u67e5\u8868\/","og_locale":"zh_CN","og_type":"article","og_title":"Git \u547d\u4ee4\u901f\u67e5\u8868","og_description":"\u524d\u8a00 \u4ee5\u4e0b\u662fDMM WEBCAMP Advent Calendar 2023\u7b2c14\u5929\u7684\u6587\u7ae0\u3002 \u8bf7\u4e00\u5b9a\u67e5\u770b\u5176\u4ed6\u6587 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git-\u547d\u4ee4\u901f\u67e5\u8868\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-19T21:56:10+00:00","article_modified_time":"2024-05-03T18:42:49+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/","name":"Git \u547d\u4ee4\u901f\u67e5\u8868 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-19T21:56:10+00:00","dateModified":"2024-05-03T18:42:49+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Git \u547d\u4ee4\u901f\u67e5\u8868"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37375"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37375\/revisions"}],"predecessor-version":[{"id":95629,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37375\/revisions\/95629"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}