{"version":"1.0","blog_url":"https://koujiro.hatenablog.com/","provider_url":"https://hatena.blog","categories":["Git","Cloud Source Repositories"],"url":"https://koujiro.hatenablog.com/entry/2019/11/13/114240","height":"190","provider_name":"Hatena Blog","description":"\u5168\u8ffd\u52a0\u30fb\u30b3\u30df\u30c3\u30c8\u30fb\u30d7\u30c3\u30b7\u30e5 git add --all git commit -m \"comment\" git push -u origin master \u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8\u53d6\u308a\u6d88\u3057 git reset --hard HEAD^ --hard\uff1a\u30b3\u30df\u30c3\u30c8\u53d6\u308a\u6d88\u3057\u305f\u4e0a\u3067\u30ef\u30fc\u30af\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3082\u66f8\u304d\u63db\u3048\u305f\u3044\u5834\u5408 --soft\uff1a\u30ef\u30fc\u30af\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u306f\u305d\u306e\u307e\u307e\u3067\u30b3\u30df\u30c3\u30c8\u3060\u3051\u3092\u53d6\u308a\u6d88\u3057\u305f\u3044\u5834\u5408 HEAD^\uff1a\u76f4\u524d\u306e\u30b3\u30df\u30c3\u30c8 HEAD~{n} \uff1an\u500b\u524d\u306e\u30b3\u30df\u30c3\u30c8 \u76f4\u524d\u306eAdd\u306e\u53d6\u308a\u6d88\u3057 git reset HEAD \u5f37\u5236\u7684\u306bPush\u3059\u308b git push -f origin master Cloud Sou\u2026","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoujiro.hatenablog.com%2Fentry%2F2019%2F11%2F13%2F114240\" title=\"\u81ea\u5206\u7528 Git\u30b3\u30de\u30f3\u30c9\u65e9\u898b\u8868 - \u795e\u4ee3\u30ec\u30dd\u30fc\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"author_url":"https://blog.hatena.ne.jp/KoujiroHashida/","type":"rich","title":"\u81ea\u5206\u7528 Git\u30b3\u30de\u30f3\u30c9\u65e9\u898b\u8868","blog_title":"\u795e\u4ee3\u30ec\u30dd\u30fc\u30c8","published":"2019-11-13 11:42:40","author_name":"KoujiroHashida"}