{"id":37438,"date":"2024-01-18T10:44:02","date_gmt":"2023-07-04T05:35:40","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/"},"modified":"2024-05-04T18:55:32","modified_gmt":"2024-05-04T10:55:32","slug":"git%e5%91%bd%e4%bb%a4-5","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/","title":{"rendered":"Git\u547d\u4ee4"},"content":{"rendered":"<p>\u2022 &#8220;Git\u7684\u547d\u4ee4&#8221;<\/p>\n<p>\u25cf\u521d\u59cb\u5316Git\u4ed3\u5e93\u5e76\u521b\u5efa\u5b58\u50a8\u5e93(.git\u76ee\u5f55)<\/p>\n<p>\u00b7git add<br \/>\n\u5c06\u538b\u7f29\u6587\u4ef6\u4fdd\u5b58\u5230\u4ee3\u7801\u5e93\uff0c\u5c06\u7d22\u5f15\u4fdd\u5b58\u5230\u6682\u5b58\u533a<\/p>\n<pre class=\"post-pre\"><code>git add \u30d5\u30a1\u30a4\u30eb\u540d\r\ngit add \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\r\ngit add .                           \u306a\u3069\r\n<\/code><\/pre>\n<p>\u00b7 Git \u63d0\u4ea4<br \/>\n\u5c06\u6587\u4ef6\u6811\u548c\u63d0\u4ea4\u4fdd\u5b58\u5230\u4ee3\u7801\u5e93\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>git commit\r\ngit commit -m \u30e1\u30c3\u30bb\u30fc\u30b8\r\ngit commit -v                       \u306a\u3069\r\n<\/code><\/pre>\n<p>\u25cfgit clone<br \/>\n\u590d\u5236\u73b0\u6709\u7684Git\u4ed3\u5e93<\/p>\n<pre class=\"post-pre\"><code>git clone \u30ea\u30dd\u30b8\u30c8\u30ea(Git\u3067\u30b3\u30d4\u30fc\u3057\u305fURL)\r\n<\/code><\/pre>\n<p>\u25cf git status<br \/>\n\u68c0\u67e5\u5df2\u66f4\u6539\u7684\u6587\u4ef6<\/p>\n<p>\u25cfgit diff<br \/>\n\u786e\u8ba4\u5728\u6dfb\u52a0\u5230\u6682\u5b58\u533a\u4e4b\u524d\uff08\u5de5\u4f5c\u533a\u4e0e\u6682\u5b58\u533a\u4e4b\u95f4\uff09\u7684\u4fee\u6539<\/p>\n<pre class=\"post-pre\"><code>git diff\r\ngit diff \u30d5\u30a1\u30a4\u30eb\u540d\r\n<\/code><\/pre>\n<p>\u25cfgit diff &#8211;staged<br \/>\n\u68c0\u67e5\u5728git add\u4e4b\u540e\uff08\u6682\u5b58\u533a\u548c\u4ed3\u5e93\u4e4b\u95f4\uff09\u7684\u66f4\u6539\u5185\u5bb9<\/p>\n<p>\u25cfgit log<br \/>\n\u68c0\u67e5\u66f4\u6539\u65e5\u5fd7<\/p>\n<pre class=\"post-pre\"><code>git log =&gt;\u5168\u3066\u306e\u5909\u66f4\u5c65\u6b74\u3092\u8868\u793a\r\ngit log --oneline =&gt; 1\u884c\u3067\u8868\u793a\r\ngit log -p \u30d5\u30a1\u30a4\u30eb\u540d =&gt; \u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u5c65\u6b74\u3092\u8868\u793a\r\ngit log -n \u30b3\u30df\u30c3\u30c8\u6570 =&gt; \u6307\u5b9a\u306e\u30b3\u30df\u30c3\u30c8\u6570\u5206\u3060\u3051\u306e\u5909\u66f4\u5c65\u6b74\u3092\u8868\u793a\r\n<\/code><\/pre>\n<p>\u25cfgit rm<br \/>\n\u5220\u9664\u6587\u4ef6\u6216\u76ee\u5f55\uff08\u5220\u9664\u64cd\u4f5c\u4f1a\u88ab\u8bb0\u5f55\u5728\u63d0\u4ea4\u4e2d\uff0c\u4f46\u4fdd\u7559\u5728\u6682\u5b58\u533a\uff09<\/p>\n<pre class=\"post-pre\"><code>#\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u524a\u9664\r\ngit rm \u30d5\u30a1\u30a4\u30eb\u540d\r\ngit rm -r \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\r\n#\u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u306f\u6b8b\u3057\u3066\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u3060\u3051\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\r\ngit rm cached \u30d5\u30a1\u30a4\u30eb\u540d\r\n<\/code><\/pre>\n<p>\u5728\u4e2d\u56fd, \u4e0b\u9762\u8fd9\u53e5\u8bdd\u7684\u7ffb\u8bd1\u5982\u4e0b\uff1a<br \/>\n\u4e0erm\u547d\u4ee4\u4e0d\u540c\u7684\u662f\uff0crm\u547d\u4ee4\u53ea\u4ece\u5de5\u4f5c\u76ee\u5f55\u4e2d\u5220\u9664\u6587\u4ef6\uff08\u4ed3\u5e93\u4e2d\u4ecd\u4fdd\u7559\u6587\u4ef6\uff09\u3002<\/p>\n<p>\u25cfgit mv \u5143\u306e\u30d5\u30a1\u30a4\u30eb\u540d \u65b0\u30d5\u30a1\u30a4\u30eb\u540d<br \/>\n\u66f4\u6539\u6587\u4ef6\u540d<br \/>\n\u203b\u4ee5\u4e0b\u547d\u4ee4\u4e5f\u53ef\u4ee5\u6267\u884c\u76f8\u540c\u64cd\u4f5c<br \/>\nmv \u5143\u306e\u30d5\u30a1\u30a4\u30eb\u540d \u65b0\u30d5\u30a1\u30a4\u30eb\u540d<br \/>\ngit rm \u5143\u306e\u30d5\u30a1\u30a4\u30eb\u540d<br \/>\ngit add \u65b0\u30d5\u30a1\u30a4\u30eb\u540d<\/p>\n<p>\u25cf \u4f7f\u7528git remote add\u547d\u4ee4\u5c06URL\u7684\u8fdc\u7a0b\u4ed3\u5e93\u6ce8\u518c\u5230\u6307\u5b9a\u7684\u8fdc\u7a0b\u4ed3\u5e93\u540d\u79f0\u3002<\/p>\n<pre class=\"post-pre\"><code>git remote add origin URL\r\n=&gt;origin\u3068\u3044\u3046\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u540d\u3067URL\u306e\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u767b\u9332\r\n<\/code><\/pre>\n<p>\u5c06\u672c\u5730\u4ed3\u5e93\u7684\u5185\u5bb9\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u4f7f\u7528\u547d\u4ee4\uff1agit push \u8fdc\u7a0b\u4ed3\u5e93\u540d\u79f0 \u5206\u652f\u540d\u79f0<\/p>\n<pre class=\"post-pre\"><code>git push origin master\r\n=&gt;\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5185\u5bb9\u3092origin\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306bmaster\u30d6\u30e9\u30f3\u30c1\u3067\u9001\u308b\r\n<\/code><\/pre>\n<p>\u6062\u590d\u6587\u4ef6\u540d\u79f0<br \/>\n\u53d6\u6d88\u76ee\u6807\u6587\u4ef6\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u7684\u66f4\u6539<\/p>\n<p>\u25cfgit restore &#8211;staged \u6587\u4ef6\u540d<br \/>\n\u64a4\u9500\u76ee\u6807\u6587\u4ef6\u5728\u6682\u5b58\u533a\uff08git add\u540e\uff09\u7684\u66f4\u6539\u3002<\/p>\n<p>\u25cfgit commit &#8211;amend<br \/>\n\u5bf9\u4e0a\u4e00\u6b21\u63d0\u4ea4\u8fdb\u884c\u4fee\u6539<br \/>\n=&gt; \u4fee\u6539\u6587\u4ef6\u6216\u63d0\u4ea4\u6d88\u606f<\/p>\n<p>\u25cf\u663e\u793a\u8bbe\u7f6e\u7684\u8fdc\u7a0b\u4ed3\u5e93\u540d\u79f0<\/p>\n<p>\u25cfgit remote -v<br \/>\n\u5c55\u793a\u4e86\u6240\u8bbe\u7f6e\u7684\u8fdc\u7a0b\u4ed3\u5e93\u540d\u79f0\u53ca\u5176URL<\/p>\n<p>\u25cf\u663e\u793a\u8fdc\u7a0b\u4ed3\u5e93\u7684URL\u3001\u5206\u652f\uff0c\u5e76\u5c55\u793agit pull\u548cgit push\u7684\u64cd\u4f5c\u884c\u4e3a\uff1a<br \/>\ngit remote show \u8fdc\u7a0b\u4ed3\u5e93\u540d\u79f0<\/p>\n<p>\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff0c\u6211\u6765\u7528\u4e2d\u6587\u89e3\u91ca\u4e00\u4e0b:<br \/>\n\u25cfgit fetch remote repository name<br \/>\n\u83b7\u53d6\u8bbe\u7f6e\u7684\u8fdc\u7a0b\u5b58\u50a8\u5e93\u7684\u4fe1\u606f<br \/>\n=&gt;\u5982\u679c\u8981\u4fdd\u5b58\u5230\u5de5\u4f5c\u76ee\u5f55\u4e2d\uff0c\u9700\u8981\u4f7f\u7528git merge\u3002<\/p>\n<p>\u4ece\u5df2\u914d\u7f6e\u7684\u8fdc\u7a0b\u5b58\u50a8\u5e93\u83b7\u53d6\u4fe1\u606f\u5e76\u4fdd\u5b58\u5230\u5de5\u4f5c\u76ee\u5f55\u4e2d\uff0c\u8bf7\u6ce8\u610f\u4fdd\u5b58\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>\u25cf\u4f7f\u7528Git\u547d\u4ee4\u5c06\u539f\u6709\u7684\u8fdc\u7a0b\u4ed3\u5e93\u540d\u6539\u4e3a\u65b0\u7684\u8fdc\u7a0b\u4ed3\u5e93\u540d\u3002<br \/>\n\u547d\u4ee4\uff1agit remote rename \u5143\u306e\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u540d \u65b0\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u540d<\/p>\n<p>\u25cf \u5220\u9664\u8fdc\u7a0b\u4ed3\u5e93 GitHub\u94fe\u63a5\u7684\u540d\u5b57\u3002<\/p>\n<p>\u25cfgit branch \u5206\u652f\u540d<br \/>\n\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u652f<br \/>\n\u203b\u4ec5\u521b\u5efa\u5206\u652f\uff0c\u4e0d\u8fdb\u884c\u5207\u6362<\/p>\n<p>\u25cfgit branch<br \/>\n\u663e\u793a\u5f53\u524d\u4ed3\u5e93\u4e2d\u7684\u5206\u652f\u5217\u8868<br \/>\n\u203b\u4e0d\u663e\u793a\u8fdc\u7a0b\u5206\u652f<\/p>\n<p>&#8211; \u663e\u793a\u5f53\u524d\u4ed3\u5e93\u4e2d\u7684\u6240\u6709\u5206\u652f\u5217\u8868\uff0c\u5305\u62ec\u8fdc\u7a0b\u5206\u652f\u3002<\/p>\n<p>\u25cf\u5207\u6362\u5230\u6307\u5b9a\u5206\u652f\u7684git\u547d\u4ee4\uff1agit switch \u5206\u652f\u540d<\/p>\n<p>\u5408\u5e76\u66f4\u6539\u5386\u53f2\u8bb0\u5f55<\/p>\n<pre class=\"post-pre\"><code>git merge \u30d6\u30e9\u30f3\u30c1\u540d\r\ngit merge \u30ea\u30e2\u30fc\u30c8\u540d\/\u30d6\u30e9\u30f3\u30c1\u540d\r\n<\/code><\/pre>\n<p>\u5bf9\u4e0d\u8d77\uff0c\u6211\u8fdf\u5230\u4e86\u3002<br \/>\n\u6211\u5f88\u62b1\u6b49\uff0c\u6211\u6765\u665a\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>git merge origin\/master\r\n=&gt;\u4f5c\u696d\u4e2d\u306e\u30d6\u30e9\u30f3\u30c1\u306borigin\u30ea\u30dd\u30b8\u30c8\u30ea\u306emaster\u30d6\u30e9\u30f3\u30c1\u3092\u30de\u30fc\u30b8\r\n<\/code><\/pre>\n<p>\u25cf git branch -m to change the branch name of the working branch to a new branch name<\/p>\n<p>\u25cf git branch -m \u7528\u4e8e\u5c06\u5de5\u4f5c\u4e2d\u5206\u652f\u7684\u5206\u652f\u540d\u79f0\u66f4\u6539\u4e3a\u65b0\u7684\u5206\u652f\u540d\u79f0<\/p>\n<p>\u25cfgit branch -d \u5206\u652f\u540d\u79f0<br \/>\n\u5220\u9664\u6307\u5b9a\u7684\u5206\u652f<br \/>\n\u203b\u5982\u679c\u5b58\u5728\u672a\u5408\u5e76\u7684\u66f4\u6539\uff0c\u5219\u4e0d\u4f1a\u88ab\u5220\u9664<\/p>\n<p>\u25cfgit branch -D \u5206\u652f\u540d\u79f0<br \/>\n\u5f3a\u5236\u5220\u9664\u6307\u5b9a\u7684\u5206\u652f<br \/>\n\u203b\u5373\u4f7f\u5b58\u5728\u672a\u5408\u5e76\u7684\u66f4\u6539\uff0c\u4e5f\u5c06\u5220\u9664\u3002<\/p>\n<p>\u5217\u51fa\u6240\u6709\u7684\u6807\u7b7e<\/p>\n<p>\u25cf\u521b\u5efa\u8f7b\u91cf\u7ea7\u6807\u7b7e\uff08\u53ea\u6709\u540d\u79f0\u7684\u6807\u7b7e\uff09\uff1agit tag \u6807\u7b7e\u540d<br \/>\n\u203b\u6700\u65b0\u63d0\u4ea4\u7684commit\u4f1a\u88ab\u6253\u4e0a\u6807\u7b7e<\/p>\n<p>\u5728\u6307\u5b9a\u7684\u63d0\u4ea4\u4e0a\u6dfb\u52a0\u6807\u7b7e<\/p>\n<p>\u25cf\u7528git tag -a \u6807\u7b7e\u540d \u63d0\u4ea4\u540d -m &#8220;\u5907\u6ce8&#8221;\u521b\u5efa\u4e00\u4e2a\u5e26\u6ce8\u91ca\u7684\u6807\u7b7e<br \/>\n\u203b\u57fa\u672c\u4e0a\u90fd\u8981\u52a0\u4e0a\u6ce8\u91ca\u7684\u6807\u7b7e<br \/>\n\u203b\u5982\u679c\u8981\u7ed9\u8fc7\u53bb\u7684\u63d0\u4ea4\u6253\u6807\u7b7e\uff0c\u9700\u6307\u5b9a\u63d0\u4ea4\u540d<\/p>\n<p>\u25cf\u6807\u7b7e\u663e\u793a \u6807\u7b7e\u540d\u79f0<br \/>\n\u663e\u793a\u6807\u7b7e\u6570\u636e\uff08\u6807\u8bb0\u4eba\u3001\u6807\u8bb0\u65f6\u95f4\u3001\u5907\u6ce8\u3001\u63d0\u4ea4\u5185\u5bb9\uff09<\/p>\n<p>\u25cfgit push \u8fdc\u7a0b\u4ed3\u5e93\u540d\u79f0 \u6807\u7b7e\u540d<br \/>\n\u5c06\u6307\u5b9a\u6807\u7b7e\u63a8\u9001\u5230\u6307\u5b9a\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u3002<\/p>\n<p>\u25cf \u4f7f\u7528git push\u547d\u4ee4\u5411\u6307\u5b9a\u7684\u8fdc\u7a0b\u4ed3\u5e93\u53d1\u9001\u6807\u7b7e<\/p>\n<p>\u25cfgit stash<br \/>\n\u6682\u5b58\u5f53\u524d\u7684\u5de5\u4f5c<\/p>\n<p>\u25cf\u5c55\u793a\u9690\u85cf\u7684\u5de5\u4f5c\u5217\u8868<\/p>\n<p>\u25cfgit stash apply<br \/>\n\u5c06\u6700\u65b0\u7684\u5de5\u4f5c\u8fd8\u539f\u5230\u5de5\u4f5c\u533a<br \/>\n\uff08\u6682\u5b58\u533a\u7684\u72b6\u6001\u4e0d\u4f1a\u88ab\u8fd8\u539f\uff09<\/p>\n<p>\u25cf\u4f7f\u7528git stash apply &#8211;index\u547d\u4ee4\uff0c\u5c06\u6700\u65b0\u7684\u5de5\u4f5c\u6062\u590d\u5230\u6682\u5b58\u533a\u7684\u72b6\u6001\u3002<\/p>\n<p>\u25cf\u6062\u590d\u6307\u5b9a\u7684\u5b58\u50a8<br \/>\n\u793a\u4f8b\uff1agit stash apply \u5b58\u50a8\u540d\u79f0<\/p>\n<pre class=\"post-pre\"><code>git stash apply stash@{2}\r\n\u203b\u30b9\u30bf\u30c3\u30b7\u30e5\u540dstash@{2}\u306fgit stash list\u3067\u78ba\u8a8d\r\n\u203b\u756a\u53f7\u306f0\u304c\u6700\u65b0\u3067\u3001\u5927\u304d\u304f\u306a\u308b\u307b\u3069\u53e4\u3044\u4f5c\u696d\r\n<\/code><\/pre>\n<p>\u25cf\u5e9f\u5f03git\u7684\u6682\u5b58\u533a<\/p>\n<p>\u25cf\u5220\u9664\u7279\u5b9a\u7684\u64cd\u4f5c\uff08git stash drop\uff09<\/p>\n<p>\u25cf \u6e05\u9664git\u6682\u5b58\u5185\u5bb9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2022 &#8220;Git\u7684\u547d\u4ee4&#8221; \u25cf\u521d\u59cb\u5316Git\u4ed3\u5e93\u5e76\u521b\u5efa\u5b58\u50a8\u5e93(.git\u76ee\u5f55) \u00b7git add [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37438","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 - 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-5\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git\u547d\u4ee4\" \/>\n<meta property=\"og:description\" content=\"\u2022 &#8220;Git\u7684\u547d\u4ee4&#8221; \u25cf\u521d\u59cb\u5316Git\u4ed3\u5e93\u5e76\u521b\u5efa\u5b58\u50a8\u5e93(.git\u76ee\u5f55) \u00b7git add [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git\u547d\u4ee4-5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-04T05:35:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T10:55:32+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\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-5\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/\",\"name\":\"Git\u547d\u4ee4 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-04T05:35:40+00:00\",\"dateModified\":\"2024-05-04T10:55:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\u547d\u4ee4\"}]},{\"@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\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git\u547d\u4ee4 - 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-5\/","og_locale":"zh_CN","og_type":"article","og_title":"Git\u547d\u4ee4","og_description":"\u2022 &#8220;Git\u7684\u547d\u4ee4&#8221; \u25cf\u521d\u59cb\u5316Git\u4ed3\u5e93\u5e76\u521b\u5efa\u5b58\u50a8\u5e93(.git\u76ee\u5f55) \u00b7git add [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git\u547d\u4ee4-5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-04T05:35:40+00:00","article_modified_time":"2024-05-04T10:55:32+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\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-5\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/","name":"Git\u547d\u4ee4 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-04T05:35:40+00:00","dateModified":"2024-05-04T10:55:32+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Git\u547d\u4ee4"}]},{"@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\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-5\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37438","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37438"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37438\/revisions"}],"predecessor-version":[{"id":100092,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37438\/revisions\/100092"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}