{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinca.hatenablog.com%2Fentry%2F20120924%2F1348491052\" title=\" git reset --hard HEAD \u3092\u5b89\u5168\u306b\u3057\u305f - \u6c38\u9060\u306b\u672a\u5b8c\u6210\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["git"],"blog_title":"\u6c38\u9060\u306b\u672a\u5b8c\u6210","author_url":"https://blog.hatena.ne.jp/thinca/","width":"100%","height":"190","provider_name":"Hatena Blog","type":"rich","title":" git reset --hard HEAD \u3092\u5b89\u5168\u306b\u3057\u305f","blog_url":"https://thinca.hatenablog.com/","image_url":null,"author_name":"thinca","version":"1.0","url":"https://thinca.hatenablog.com/entry/20120924/1348491052","published":"2012-09-24 21:50:52","provider_url":"https://hatena.blog","description":"\u6628\u65e5\u3001git reset --hard HEAD \u3057\u3066\u3057\u307e\u3063\u3066\u5927\u5909\u306a\u3053\u3068\u306b\u306a\u3063\u305f\u8a71\u3092\u66f8\u3044\u305f\u3002\u79c1\u306f\u666e\u6bb5\u3053\u308c\u3092 cancel \u3068\u8a00\u3046\u540d\u524d\u306b alias \u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u3002 [alias] # \u4e2d\u7565 cancel = reset --hard HEAD \u3057\u304b\u3057\u524d\u56de\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u307e\u305f\u3042\u3063\u3066\u306f\u305f\u307e\u3089\u306a\u3044\u3002\u4eba\u9593\u306f\u30df\u30b9\u3059\u308b\u3082\u306e\u3060\u3002 alias \u304c\u3042\u3063\u3066\u5b9f\u884c\u3057\u3084\u3059\u3044\u306e\u304c\u554f\u984c\u306a\u306e\u3060\u308d\u3046\u304b? \u3044\u3084\u3001\u5272\u3068\u3088\u304f\u3059\u308b\u64cd\u4f5c*1\u3060\u3057\u3001alias \u3057\u306a\u304f\u3066\u3082\u4f7f\u3046\u3060\u308d\u3046\u3002 \u3066\u3053\u3068\u3067\u3001cancel \u304c\u5b89\u5168\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3002 [alias] # \u4e2d\u7565 cancel = !git commit -a -m 'Temporary c\u2026"}