{"id":37899,"date":"2022-11-27T17:55:48","date_gmt":"2023-06-04T23:33:23","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8-4\/"},"modified":"2024-04-29T02:44:37","modified_gmt":"2024-04-28T18:44:37","slug":"git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8-4","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-4\/","title":{"rendered":"Git \u547d\u4ee4\u901f\u67e5\u8868"},"content":{"rendered":"<h2>GIT\u901f\u67e5\u8868<\/h2>\n<h3>\u8bbe\u5b9a- She ding<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8d<code>git config -l --show-origin<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u7d5e\u308a\u8fbc\u307f\u304c\u53ef\u80fd<br \/>\n<code>--system<\/code>:\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u8a2d\u5b9a<br \/>\n<code>--global<\/code>:\u30e6\u30fc\u30b6\u56fa\u6709\u306e\u8a2d\u5b9a<br \/>\n<code>--local<\/code>:\u30ea\u30dd\u30b8\u30c8\u30ea\u56fa\u6709\u306e\u8a2d\u5b9a\u7279\u5b9a\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8d<code>git config [\u8a2d\u5b9a\u9805\u76ee]<\/code><br \/>\n\u8a2d\u5b9a\u306e\u5909\u66f4<code>git config --global [\u8a2d\u5b9a\u9805\u76ee] [\u8a2d\u7f6e\u5024]<\/code>\u30ea\u30dd\u30b8\u30c8\u30ea\u56fa\u6709\u306e\u8a2d\u5b9a\u306e\u5834\u5408\u306f<code>--global<\/code>\u3092<code>--local<\/code>\u306b\u5909\u66f4\u3059\u308b\u8a2d\u5b9a\u306e\u524a\u9664<code>git config --global --unset [\u8a2d\u5b9a\u9805\u76ee]<\/code>\u30ea\u30dd\u30b8\u30c8\u30ea\u56fa\u6709\u306e\u8a2d\u5b9a\u306e\u5834\u5408\u306f<code>--global<\/code>\u3092<code>--local<\/code>\u306b\u5909\u66f4\u3059\u308b\u30e6\u30fc\u30b6\u540d\u8a2d\u5b9a<code>git config --global user.name \"[name]\"<\/code><br \/>\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u767b\u9332<code>git config --global user.email \"[email@address]\"<\/code><br \/>\n\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u8272<code>git config --global color.ui auto<\/code><br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u3092\u691c\u77e5\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<code>git config core.ignorecase false<\/code><br \/>\n\u77ed\u7e2e\u30b3\u30de\u30f3\u30c9\u306e\u767b\u9332<br \/>\ngit [alias_command] \u3067 [git_command] \u304c\u5b9f\u884c\u3055\u308c\u308b&#8221;<code>git config --global alias.[alias_command] \"[git_command]\"<\/code><br \/>\n<code>merge --no-ff<\/code> \u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u3059\u308b<code>git config --global --add merge.ff false<\/code><br \/>\n<code>git config --global --add pull.ff only<\/code><br \/>\n\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6642\u3001\u30b3\u30df\u30c3\u30c8\u6642\u306e\u6539\u884c\u30b3\u30fc\u30c9\u5909\u63db\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b<code>git config --global core.autocrlf [\u5024]<\/code>\u30fbtrue: \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6642CRLF\u3001\u30b3\u30df\u30c3\u30c8\u6642LF<br \/>\n\u30fbinput: \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6642\u5909\u63db\u306a\u3057\u3001\u30b3\u30df\u30c3\u30c8\u6642LF<br \/>\n\u30fbfalse: \u5909\u63db\u306a\u3057<\/div>\n<\/div>\n<h3>\u521b\u5efa\u5b58\u50a8\u5e93<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210<code>git init<\/code>\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u30af\u30ed\u30fc\u30f3\u4f5c\u6210<code>git clone [url]<\/code><\/div>\n<\/div>\n<h3>\u786e\u5b9a<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9staged \/ modified \/ untracked \u306e\u4e00\u89a7<code>git status<\/code>[\u5c65\u6b74] \u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u5c65\u6b74<code>git log<\/code>[\u5c65\u6b74] \u30d5\u30a1\u30a4\u30eb\u306e\u5c65\u6b74<code>git log --follow [file\/path]<\/code>[\u5dee\u5206] \u30d6\u30e9\u30f3\u30c1\u9593\u5dee\u5206\u8868\u793a<code>git diff [first-brach] [second-branch]<\/code>[\u5dee\u5206] \u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u3068 \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2 \u306e\u5dee\u5206\u3092\u8868\u793a<code>git diff<\/code><\/div>\n<\/div>\n<h3>\u821e\u53f0\u5e03\u7f6e<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u6307\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092 staged \u306b\u3059\u308b(\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8907\u6570\u9078\u629e)<code>git add [file\/path]<\/code>\u3059\u3079\u3066\u306e modified \u3092 staged \u306b\u3059\u308b (&#8211;update)<code>git add -u<\/code>\u3059\u3079\u3066\u306e untracked \u3068\u3059\u3079\u3066\u306e modified \u3092 staged \u306b\u3059\u308b (&#8211;all)<code>git add -A<\/code>\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092 staged \u306b\u3059\u308b (cf. -A \u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u5168\u4f53)<code>git add .<\/code>staged \u304b\u3089 modified \u306b\u3082\u3069\u3059<code>git reset [file\/path]<\/code>\u6307\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u90e8\u5206\u7684\u306b staged \u306b\u3059\u308b<code>git add -p [file\/path]<\/code><\/div>\n<\/div>\n<h3>\u63d0\u4ea4<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u30b3\u30df\u30c3\u30c8<code>git commit -m \"[comment]\"<\/code>\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0(untracked\u306f\u5bfe\u8c61\u5916) &amp; \u30b3\u30df\u30c3\u30c8<code>git commit -a -m \"[comment]\"<\/code>\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u4fee\u6b63\u3059\u308b<code>git commit --amend -m \"[comment]\"<\/code><\/div>\n<\/div>\n<h3>\u7ed3\u8d26<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<code>git checkout [branchname]<\/code>\u30d6\u30e9\u30f3\u30c1\u4f5c\u6210 &amp; \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<code>git checkout -b [branchname]<\/code>\u7279\u5b9a\u306e\u30b3\u30df\u30c3\u30c8\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3066\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<code>git checkout -b [branchname] [\u30b3\u30df\u30c3\u30c8ID]<\/code>\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3066\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<code>git checkout -b [branchname] [remote_branchname]<\/code><\/div>\n<\/div>\n<h3>\u5206\u5e97<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7<code>git branch<\/code>\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3068\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7<code>git branch -a<\/code>\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7<code>git branch -r<\/code>\u4e0a\u6d41\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d\u3059\u308b<code>git branch -vv<\/code>\u30d6\u30e9\u30f3\u30c1\u4f5c\u6210<code>git branch [branchname]<\/code>\u30d6\u30e9\u30f3\u30c1\u540d\u306e\u5909\u66f4<code>git branch -m [new_branchname]<\/code>\u30d6\u30e9\u30f3\u30c1\u524a\u9664<code>git branch -d [branchname]<\/code>\u30ea\u30d9\u30fc\u30b9 (\u30d6\u30e9\u30f3\u30c1\u306e\u4ed8\u66ff\u3048)<code>git checkout [\u5bfe\u8c61\u30d6\u30e9\u30f3\u30c1]<\/code><br \/>\n<code>git rebase [\u30d6\u30e9\u30f3\u30c1\u3092\u751f\u3084\u3059\u30d6\u30e9\u30f3\u30c1\u540d]<\/code>\u30ea\u30d9\u30fc\u30b9\u306e\u4e2d\u65ad<code>git rebase --abort<\/code>\u4ed6\u30d6\u30e9\u30f3\u30c1\u306e\u30b3\u30df\u30c3\u30c8\u3092\u53d6\u308a\u8fbc\u3080<code>git cherry-pick [\u30b3\u30df\u30c3\u30c8ID]<\/code>\u30bf\u30b0\u306e\u4f5c\u6210<code>git tag [tagname]<\/code>\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210<code>git branch [branchname] [remote_branchname]<\/code>\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664<code>git push --delete origin [remote_branchname]<\/code><\/div>\n<\/div>\n<pre class=\"post-pre\"><code>git branch <span class=\"nt\">-a<\/span> <span class=\"nt\">--format<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"%(refname:short)\"<\/span> | <span class=\"nb\">grep<\/span> <span class=\"nt\">-e<\/span> <span class=\"s2\">\"^\u30d6\u30e9\u30f3\u30c1\u540d$\"<\/span> <span class=\"nt\">-i<\/span>\r\n<\/code><\/pre>\n<h3>\u5408\u4f75<\/h3>\n<p>\u5408\u5e76\u662f\u5206\u652f\u7684\u5408\u6d41\u3002\u53d8\u57fa\u662f\u5206\u652f\u7684\u66ff\u6362\u3002<\/p>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u30de\u30fc\u30b8 (\u30d6\u30e9\u30f3\u30c1\u306e\u5408\u6d41)<code>git checkout [\u53d6\u8fbc\u5148\u30d6\u30e9\u30f3\u30c1]<\/code><br \/>\n<code>git merge [\u5bfe\u8c61\u30d6\u30e9\u30f3\u30c1] --no-ff<\/code><code>--no-ff<\/code>\u3092\u3064\u3051\u308b\u3068\u5fc5\u305a\u30de\u30fc\u30b8\u30b3\u30df\u30c3\u30c8<br \/>\n<code>--ff-only<\/code>\u3092\u3064\u3051\u308b\u3068\u5fc5\u305a\u30d5\u30a1\u30b9\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u30de\u30fc\u30b8\u306e\u4e2d\u6b62<code>git merge --abort<\/code>\u30de\u30fc\u30b8\u3067\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u767a\u751f\u6642\u3001\u30de\u30fc\u30b8\u524d\u306e\u72b6\u614b\u306b\u623b\u3059(\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u767a\u751f\u304b\u3089\u306a\u306b\u3082\u7de8\u96c6\u3092\u3057\u3066\u3044\u306a\u3044\u6642)\u30de\u30fc\u30b8\u306e\u4e2d\u6b62<code>git reset --hard HEAD<\/code>\u30de\u30fc\u30b8\u3067\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u767a\u751f\u6642\u3001\u30de\u30fc\u30b8\u524d\u306e\u72b6\u614b\u306b\u623b\u3059(\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u767a\u751f\u304b\u3089\u7de8\u96c6\u3092\u884c\u3063\u305f\u304c\u3001\u30b3\u30df\u30c3\u30c8\u306f\u3057\u3066\u3044\u306a\u3044\u6642)<\/div>\n<\/div>\n<h3>\u8fdc\u7a0b\u4ee3\u7801\u5e93<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4e00\u89a7\u8868\u793a<code>git remote<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306eURL\u3092\u4e00\u89a7\u8868\u793a<code>git remote -v<\/code>\u4e00\u89a7\u306e(fetch)\u306f\u53d6\u5f97\u7528\u306eURL\u3001(push)\u306f\u9001\u4fe1\u5148\u306eURL\u3092\u8868\u3059\u3002\u901a\u5e38\u306f\u4e00\u81f4\u3059\u308b\u3002\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5207\u65ad\u3059\u308b<code>git remote remove [\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u540d]<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b<code>git remote add [\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u540d] [URL]<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306epush\u5148\u3060\u3051\u5909\u66f4\u3059\u308b<code>git remote set-url --push [\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u540d] [URL]<\/code>URL\u3092\u30c0\u30df\u30fc\u306e\u6587\u5b57\u5217\u306b\u3059\u308b\u3068\u3001pull\u306f\u53ef\u80fd\u3060\u304c\u3001push\u4e0d\u53ef\u3002\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u3059\u3079\u3066\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u66f4\u65b0\u5c65\u6b74\u3092\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u306b\u53d6\u308a\u8fbc\u3080<code>git fetch<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3059\u308b<code>git merge [origin\/branchname] [branchname]<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306e\u5909\u66f4\u3092\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\u3055\u305b\u308b\u30fb1<code>git fetch<\/code><br \/>\n<code>git checkout [branchname]<\/code><br \/>\n<code>git merge [origin\/branchname]<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306e\u5909\u66f4\u3092\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\u3055\u305b\u308b\u30fb2<code>git pull<\/code><code>--all<\/code> \u3092\u3064\u3051\u308b\u3068\u4e0a\u6d41\u30d6\u30e9\u30f3\u30c1\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3059\u3079\u3066\u306b\u53cd\u6620\u3055\u305b\u308b\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210<code>git branch [branchname] [remote_branchname]<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3066\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<code>git checkout -b [branchname] [remote_branchname]<\/code><br \/>\n\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u5909\u66f4\u3092\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\u3055\u305b\u308b<code>git push<\/code><code>--all<\/code> \u3092\u3064\u3051\u308b\u3068\u3059\u3079\u3066\u306e\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u53cd\u6620\u3059\u308b\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3059\u308b<code>git push --set-upstream origin [branchname]<\/code><br \/>\n\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664<code>git push --delete origin [remote_branchname]<\/code><\/div>\n<\/div>\n<h3>\u6587\u4ef6\u7f16\u8f91\u548c\u5220\u9664<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5909\u66f4\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5<code>git mv [old_file\/path] [new_file\/path]<\/code><br \/>\n\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b<code>git rm [file\/path]<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3001\u76e3\u8996\u5bfe\u8c61\u304b\u3089\u5916\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u6307\u5b9a\u306b\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u304c\u4f7f\u7528\u53ef\u80fd\u3002\u4f8b:<code>'*.xml'<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u76e3\u8996\u5bfe\u8c61\u304b\u3089\u5916\u3059<code>git rm --cached [file\/path]<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u6b8b\u3057\u305f\u307e\u307e\u3001\u76e3\u8996\u5bfe\u8c61\u304b\u3089\u5916\u3059\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u76e3\u8996\u5bfe\u8c61\u304b\u3089\u5916\u3059<code>git rm --cached -r [path]<\/code><br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u5909\u66f4\u30fb\u30b3\u30df\u30c3\u30c8<code>git mv [file_original] [file_renamed]<\/code><\/div>\n<\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u76f4\u63a5\u5909\u66f4\u3059\u308b\u3068\u524a\u9664\u30fb\u4f5c\u6210\u3068\u307f\u306a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u5909\u66f4\u3092\u8ffd\u8de1\u3059\u308b\u306b\u306fgit rm\u3092\u4f7f\u7528\u3059\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u3092\u5909\u66f4\u3059\u308b\u6642\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u76f4\u63a5\u5909\u66f4\u3059\u308b\u3068\u5dee\u5206\u304c\u8a8d\u8b58\u3055\u308c\u306a\u3044\u3002git rm\u3092\u4f7f\u7528\u3059\u308b\u3002<\/ul>\n<h3>\u50a8\u5b58 (\u6682\u65f6\u66f4\u6539\u4fdd\u5b58)<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9modified \u3068 staged \u3092\u4fdd\u5b58\u3057\u3001HEAD\u306e\u72b6\u614b\u307e\u3067\u30af\u30ea\u30fc\u30f3\u306b\u623b\u3059<code>git stash<\/code>\u76f4\u8fd1\u306e\u8a18\u9332\u3092\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u53cd\u6620\u3059\u308b (LIFO(\u5f8c\u5165\u308c\u5148\u51fa\u3057))<code>git stash pop<\/code>\u30b9\u30bf\u30c3\u30b7\u30e5\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b<code>git stash list<\/code>\u76f4\u8fd1\u306e\u8a18\u9332\u3092\u7834\u68c4\u3059\u308b (LIFO)<code>git stash drop<\/code><\/div>\n<\/div>\n<h3>\u91cd\u6765\u3002<\/h3>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5909\u66f4\u3059\u308b<code>git commit --amend -m \"[comment]\"<\/code><br \/>\ncommit_id \u4ee5\u964d\u306e\u3059\u3079\u3066\u306e\u30b3\u30df\u30c3\u30c8\u3092\u53d6\u308a\u6d88\u3057<code>git reset --soft [commit_id]<\/code>\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306f\u30ea\u30bb\u30c3\u30c8\u3057\u306a\u3044\u3002<br \/>\n[commit_id]\u3092<code>HEAD^<\/code>\u306b\u5909\u66f4\u3059\u308b\u3068\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u53d6\u308a\u6d88\u3059commit_id \u4ee5\u964d\u306e\u3059\u3079\u3066\u306e\u30b3\u30df\u30c3\u30c8\u3092\u53d6\u308a\u6d88\u3057<code>git reset --hard [commit_id]<\/code>\u30ef\u30fc\u30ad\u30f3\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u3082\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3002<br \/>\n[commit_id]\u3092<code>HEAD^<\/code>\u306b\u5909\u66f4\u3059\u308b\u3068\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u53d6\u308a\u6d88\u3059\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306b\u4e00\u81f4\u3055\u305b\u308b<code>git fetch<\/code><br \/>\n<code>git reset --hard origin\/branchname<\/code><br \/>\n\u30de\u30fc\u30b8\u3092\u53d6\u308a\u6d88\u3059<code>git merge --abort<\/code><br \/>\n\u30b3\u30df\u30c3\u30c8\u3092\u6253\u3061\u6d88\u3059\u30b3\u30df\u30c3\u30c8\u3092\u3059\u308b<code>git revert [commit_id]<\/code><br \/>\n\u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u306e\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u524d\u306e\u72b6\u614b\u306b\u623b\u3059<code>git checkout [commit_id] [file\/path] <\/code>[commit_id]\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306e\u72b6\u614b\u306b\u623b\u308b\u3002\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306b\u5909\u66f4\u3092\u8ffd\u52a0\u3059\u308b<code>git add [file\/path]<\/code><br \/>\n<code>git commit --amend --no-edit<\/code><br \/>\n\u9061\u3063\u3066\u30b3\u30e1\u30f3\u30c8\u3092\u4fee\u6b63\u3059\u308b<code>git rebase -i HEAD~3<\/code><br \/>\n# vi\u30a8\u30c7\u30a3\u30bf\u3067\u5bfe\u8c61\u306e\u30b3\u30df\u30c3\u30c8\u306epick\u3092edit\u306b\u5909\u66f4\u3057\u3001\u4fdd\u5b58<br \/>\n<code>git commit --amend -m \"[comment]\"<\/code><br \/>\n<code>git rebase --continue<\/code><br \/>\n\u524a\u9664\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u3092\u623b\u3059<code>git reflog<\/code><br \/>\n# vi\u3067HEAD\u306e\u5c65\u6b74\u304c\u8868\u793a\u3055\u308c\u308b<br \/>\n# \u6d88\u3057\u3066\u3057\u307e\u3063\u305f\u30d6\u30e9\u30f3\u30c1\u306e\u6700\u5f8c\u306e\u30b3\u30df\u30c3\u30c8\u3092\u898b\u3064\u3051\u305f\u3089\u30b3\u30df\u30c3\u30c8\u756a\u53f7\u3092\u30b3\u30d4\u30fc<br \/>\n<code>git branch [branchname] [\u30b3\u30df\u30c3\u30c8\u756a\u53f7]<\/code><\/div>\n<\/div>\n<h2>\u9644\u5f55<\/h2>\n<div>\n<div class=\"post-table\">\u7528\u9014\u30b3\u30de\u30f3\u30c9\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u767b\u9332\u3059\u308b<code>git config --global alias.graph \"log --graph --date-order --all --pretty=format:'%h %Cred%d %Cgreen%ad %Cblue%cn %Creset%s' --date=short\"<\/code>\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3092\u8868\u793a<code>git graph<\/code>vi\u30a8\u30c7\u30a3\u30bf\u306e\u57fa\u672c\u7de8\u96c6\u30e2\u30fc\u30c9: i<br \/>\n\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9: Esc<br \/>\n\u4fdd\u5b58: \u300c:w\u300d<br \/>\n\u9589\u3058\u308b: \u300c:q\u300d<\/div>\n<\/div>\n<h3>\u521b\u5efa\u4e00\u4e2a\u65b0\u4ed3\u5e93<\/h3>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> git init\r\n<span class=\"gp\">$<\/span> git add <span class=\"nt\">-A<\/span>\r\n<span class=\"gp\">$<\/span> git commit <span class=\"nt\">-m<\/span> <span class=\"s2\">\"init\"<\/span>\r\n<span class=\"gp\">$<\/span> git remote add origin <span class=\"o\">[<\/span>url]\r\n<span class=\"gp\">$<\/span> git push <span class=\"nt\">-u<\/span> origin master\r\n<\/code><\/pre>\n<h3>\u5c06\u5df2\u5b58\u5728\u7684\u672c\u5730\u5b58\u50a8\u5e93\u63a8\u9001\u5230\u8fdc\u7a0b\u3002<\/h3>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> git remote add origin <span class=\"o\">[<\/span>url]\r\n<span class=\"gp\">$<\/span> git push <span class=\"nt\">-u<\/span> origin master\r\n<\/code><\/pre>\n<h3>\u4ece\u5df2\u7ecf\u5b58\u5728\u7684\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u590d\u5236\u5230\u672c\u5730\u3002<\/h3>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> git clone <span class=\"o\">[<\/span>url]\r\n<\/code><\/pre>\n<h2>\u8bf7\u53c2\u8003<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">git | git-scm<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u89e3\u8aac\u66f8\uff08\u65e5\u672c\u8a9e\uff09 | git-scm<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Git \u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff08\u65e5\u672c\u8a9e\u7248\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>introduction-to-git | GitHub<\/p>\n<p>\u300c\u203b\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u767b\u9332\u3059\u308b\u300d\u306f\u3053\u3061\u3089\u304b\u3089\u62dd\u501f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>[git]\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3092\u898b\u3084\u3059\u304f\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u304c\u4fbf\u5229 | dackdive&#8217;s blog<br \/>\ngit\u306emerge &#8211;no-ff \u306e\u30b9\u30b9\u30e1 | Qiita<br \/>\n[git reset (&#8211;hard\/&#8211;soft)]\u30ef\u30fc\u30ad\u30f3\u30b0\u30c4\u30ea\u30fc\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001HEAD\u3092\u4f7f\u3044\u3053\u306a\u3059\u65b9\u6cd5 | Qiita<br \/>\nGitHub GIT\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8(PDF)<br \/>\n\u6a2a\u7740\u3067\u795e\u7d4c\u8cea\u306a\u79c1\u3068\u3042\u306a\u305f\u306b\u8d08\u308bgit add -p | Qiita<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GIT\u901f\u67e5\u8868 \u8bbe\u5b9a- She ding \u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8dgit config -l &#8211;sh [&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-37899","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-4\/\" \/>\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=\"GIT\u901f\u67e5\u8868 \u8bbe\u5b9a- She ding \u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8dgit config -l --sh [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git-\u547d\u4ee4\u901f\u67e5\u8868-4\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-04T23:33:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T18:44:37+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=\"3 \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-4\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8-4\/\",\"name\":\"Git \u547d\u4ee4\u901f\u67e5\u8868 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-04T23:33:23+00:00\",\"dateModified\":\"2024-04-28T18:44:37+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%e9%80%9f%e6%9f%a5%e8%a1%a8-4\/#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-4\/\"]}]},{\"@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-4\/#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\/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%e9%80%9f%e6%9f%a5%e8%a1%a8-4\/#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-4\/","og_locale":"zh_CN","og_type":"article","og_title":"Git \u547d\u4ee4\u901f\u67e5\u8868","og_description":"GIT\u901f\u67e5\u8868 \u8bbe\u5b9a- She ding \u7528\u9014\u30b3\u30de\u30f3\u30c9\u5099\u8003\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8dgit config -l --sh [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git-\u547d\u4ee4\u901f\u67e5\u8868-4\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-04T23:33:23+00:00","article_modified_time":"2024-04-28T18:44:37+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \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-4\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git-%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e8%a1%a8-4\/","name":"Git \u547d\u4ee4\u901f\u67e5\u8868 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-04T23:33:23+00:00","dateModified":"2024-04-28T18:44:37+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%e9%80%9f%e6%9f%a5%e8%a1%a8-4\/#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-4\/"]}]},{"@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-4\/#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\/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%e9%80%9f%e6%9f%a5%e8%a1%a8-4\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37899","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=37899"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37899\/revisions"}],"predecessor-version":[{"id":75959,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37899\/revisions\/75959"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}