{"published":"2010-11-16 14:27:57","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanonji.hatenadiary.com%2Fentry%2F20101116%2F1289885277\" title=\"git add\u306e\u53d6\u308a\u6d88\u3057\u3068\u3001\u30b3\u30df\u30c3\u30c8\u6e08\u307f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9664\u5916\u3059\u308b\u65b9\u6cd5 - kanonji\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/kanonji/","provider_name":"Hatena Blog","blog_title":"kanonji\u2019s diary","width":"100%","version":"1.0","blog_url":"https://kanonji.hatenadiary.com/","url":"https://kanonji.hatenadiary.com/entry/20101116/1289885277","provider_url":"https://hatena.blog","categories":["git"],"height":"190","type":"rich","author_name":"kanonji","image_url":null,"title":"git add\u306e\u53d6\u308a\u6d88\u3057\u3068\u3001\u30b3\u30df\u30c3\u30c8\u6e08\u307f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9664\u5916\u3059\u308b\u65b9\u6cd5","description":"git add\u3092\u53d6\u308a\u6d88\u3059 $ git reset HEAD foo.txt git add \u3067\u7de8\u96c6\u5185\u5bb9\u304c index \u306b\u8ffd\u52a0*1\u3055\u308c\u307e\u3059\u3002 \u9593\u9055\u3048\u3066 index \u306b\u8ffd\u52a0\u3057\u305f\u5834\u5408\u306b\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u53d6\u308a\u6d88\u3057\u304c\u3067\u304d\u307e\u3059\u3002 $ git add foo.txt $ git status # On branch master # Changes to be committed: # (use \"git reset HEAD <file>...\" to unstage) # # modified: foo.txt # $ git reset HEAD foo.txt Unstaged changes aft\u2026"}