{"version":"1.0","blog_url":"https://devops-blog.virtualtech.jp/","title":"git reset\u3067\u5931\u3063\u305f\u5909\u66f4\u3092\u53d6\u308a\u623b\u3059","published":"2024-09-10 09:48:25","blog_title":"\u3068\u3053\u3068\u3093DevOps | \u65e5\u672c\u4eee\u60f3\u5316\u6280\u8853\u306eDevOps\u6280\u8853\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","description":"\u3064\u3044\u6700\u8fd1\u3001\u8907\u6570\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u540c\u6642\u9032\u884c\u3067\u64cd\u4f5c\u3057\u3066\u3044\u305f\u6642\u3001\u9593\u9055\u3048\u3066\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u3067git reset --hard\u3092\u5b9f\u884c\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u30b3\u30df\u30c3\u30c8\u524d\u3060\u3063\u305f\u3053\u3068\u3082\u3042\u308a\u3001\u3042\u3041\u3001\u30aa\u30ef\u30bf\u30fb\u30fb\u30fb/(^q^)\\\u3063\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u30b3\u30df\u30c3\u30c8\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u5fa9\u65e7\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u5c11\u3057\u5b9f\u9a13\u3057\u3066\u307f\u307e\u3059\u3002 \u6e96\u5099 \u30c6\u30b9\u30c8\u7528\u306e\u74b0\u5883\u3092\u7528\u610f\u3057\u307e\u3059\u3002 $ mkdir test $ cd test $ git init $ git commit -m 'first commit' --allow-empty \u30c6\u30b9\u30c8\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002 $ echo A > a.txt $ echo B > b.\u2026","author_name":"tnktmak","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevops-blog.virtualtech.jp%2Fentry%2F20240910%2F1725929305\" title=\"git reset\u3067\u5931\u3063\u305f\u5909\u66f4\u3092\u53d6\u308a\u623b\u3059 - \u3068\u3053\u3068\u3093DevOps | \u65e5\u672c\u4eee\u60f3\u5316\u6280\u8853\u306eDevOps\u6280\u8853\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/v/virtualtech/20240910/20240910094446.png","provider_name":"Hatena Blog","categories":["\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7ba1\u7406"],"height":"190","author_url":"https://blog.hatena.ne.jp/tnktmak/","type":"rich","url":"https://devops-blog.virtualtech.jp/entry/20240910/1725929305"}