{"id":2945,"date":"2019-02-08T08:48:07","date_gmt":"2019-02-07T23:48:07","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2945"},"modified":"2022-12-11T11:39:40","modified_gmt":"2022-12-11T02:39:40","slug":"git-add-%e3%81%ae%e5%8f%96%e3%82%8a%e6%b6%88%e3%81%97","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2945","title":{"rendered":"[git] add \u306e\u53d6\u308a\u6d88\u3057"},"content":{"rendered":"<p>git add \u306e\u7d50\u679c\u3092\u53d6\u308a\u6d88\u3059\u65b9\u6cd5<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >$ git reset HEAD mistake.txt<\/pre>\n<p>\u88dc\u8db3 : \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306e\u60c5\u5831\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3060\u3051\u3002\u30ef\u30fc\u30ad\u30f3\u30b0\u3084\u30b3\u30df\u30c3\u30c8\u306b\u306f\u5f71\u97ff\u3057\u306a\u3044\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u3001\u30b3\u30df\u30c3\u30c8\u3082\u30ef\u30fc\u30ad\u30f3\u30b0\u3082\u30ea\u30bb\u30c3\u30c8\u3059\u308b\uff08\u30b3\u30df\u30c3\u30c8\u524d\u306b\u623b\u3059\uff09\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >$ git reset --hard HEAD^<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u95a2\u9023\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"\/tech\/index.php\/archives\/5758\">git reset<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>git add \u306e\u7d50\u679c\u3092\u53d6\u308a\u6d88\u3059\u65b9\u6cd5 $ git reset HEAD mistake.txt \u88dc\u8db3 : \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306e\u60c5\u5831\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3060\u3051\u3002\u30ef\u30fc\u30ad\u30f3\u30b0\u3084\u30b3\u30df\u30c3\u30c8\u306b\u306f\u5f71\u97ff\u3057\u306a\u3044\u3002 \u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u3001\u30b3\u30df [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-2945","post","type-post","status-publish","format-standard","hentry","category-memo","tag-git"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2945"}],"version-history":[{"count":5,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2945\/revisions"}],"predecessor-version":[{"id":5844,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2945\/revisions\/5844"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}