{"published":"2025-04-24 00:00:00","height":"190","description":"git reset --soft HEAD^\u3067\u4e00\u3064\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u3059\u308b\u76f4\u524d\u306b\u623b\u3063\u305f\u3068\u3057\u3066\u3001\u305d\u306e\u4e2d\u3067 git rm hoge.c\u3068\u3057\u3066\u3044\u305f\u5834\u5408\u3001\u3053\u306e\u64cd\u4f5c\u3092\u53d6\u308a\u6d88\u3057\u3066\u30b3\u30df\u30c3\u30c8\u3092\u5206\u5272\u3068\u304b\u3057\u305f\u3044\u306e\u306b\u305d\u3082\u305d\u3082 git checkout hoge.c\u304c\u3067\u304d\u306a\u3044\u30fb\u30fb\u30fb\u30fb \u305d\u3046\u3044\u3046\u3068\u304d\u306f git reset HEAD hoge.c git checkout hoge.c\u3067OK \u30e9\u30f3\u30ad\u30f3\u30b0\u53c2\u52a0\u4e2d\u3067\u3059 \u2193\u30af\u30ea\u30c3\u30af\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u301c\u30e9\u30f3\u30ad\u30f3\u30b0\u53c2\u52a0\u4e2dPython \u30e9\u30f3\u30ad\u30f3\u30b0\u53c2\u52a0\u4e2dHTML \u30e9\u30f3\u30ad\u30f3\u30b0\u53c2\u52a0\u4e2dMac","version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F04%2F24%2F000000\" title=\"\u3010git\u3011git rm\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5fa9\u5143\u3057\u305f\u3044 - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" 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%","author_name":"coffee_kabu","url":"https://coffee-guhaw.hateblo.jp/entry/2025/04/24/000000","title":"\u3010git\u3011git rm\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5fa9\u5143\u3057\u305f\u3044","blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","image_url":null,"blog_url":"https://coffee-guhaw.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","type":"rich","categories":["git","\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9/\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"]}