{"author_name":"hokaccha","categories":["git"],"author_url":"https://blog.hatena.ne.jp/hokaccha/","version":"1.0","provider_name":"Hatena Blog","width":"100%","blog_url":"https://hokaccha.hatenablog.com/","provider_url":"https://hatena.blog","published":"2013-09-30 15:32:33","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20130930%2F1380522753\" title=\"git reset --hard\u3067\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u306e\u6271\u3044 - hokaccha memo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"git reset --hard\u3067\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u306e\u6271\u3044","description":"$ git --version git version 1.8.3.2 $ touch newfile $ git status -s ?? newfile $ git reset --hard $ git status -s ?? newfile\u3053\u306e\u3088\u3046\u306b\u307e\u3060git\u306b\u7ba1\u7406\u3055\u308c\u3066\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306fgit reset --hard\u3057\u3066\u3082\u524a\u9664\u3055\u308c\u306a\u3044\u3002\u3053\u308c\u306f\u3088\u3044\u3002\u305f\u3060\u3001\u6b21\u306e\u3088\u3046\u306b\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u8ffd\u52a0\u3057\u305f\u5f8c\u306bgit reset --hard\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u6d88\u3048\u308b\u3002 $ git add newfile $ git status -s A newfile $ git reset --hard $ git s\u2026","type":"rich","url":"https://hokaccha.hatenablog.com/entry/20130930/1380522753","image_url":null,"blog_title":"hokaccha memo"}