{"url":"https://ohshige.hatenablog.com/entry/2019/12/16/190000","version":"1.0","height":"190","provider_name":"Hatena Blog","author_name":"ohshige","blog_url":"https://ohshige.hatenablog.com/","type":"rich","blog_title":"\u6280\u8853\u3068\u304b\u30dc\u30c9\u30b2\u3068\u304b\u305d\u3093\u306a\u8a71\u3092\u3057\u305f\u3044","categories":["Git"],"published":"2019-12-16 19:00:00","title":"Git\u306e\u65b0\u3057\u3044\u30b3\u30de\u30f3\u30c9\u306eswitch\u3068restore\u306b\u6163\u308c\u305f\u3044","author_url":"https://blog.hatena.ne.jp/ohshige/","image_url":null,"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohshige.hatenablog.com%2Fentry%2F2019%2F12%2F16%2F190000\" title=\"Git\u306e\u65b0\u3057\u3044\u30b3\u30de\u30f3\u30c9\u306eswitch\u3068restore\u306b\u6163\u308c\u305f\u3044 - \u6280\u8853\u3068\u304b\u30dc\u30c9\u30b2\u3068\u304b\u305d\u3093\u306a\u8a71\u3092\u3057\u305f\u3044\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u3057\u3070\u3089\u304f\u524d\u306bGit\u306e\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3001\u305d\u3053\u3067 git switch \u3068 git restore \u306a\u308b\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3053\u3068\u306f\u77e5\u3063\u3066\u3044\u307e\u3057\u305f\u3002 \u3057\u304b\u3057\u3001\u3053\u308c\u307e\u3067\u306e\u6163\u308c\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u3001\u3069\u3046\u3057\u3066\u3082 git checkout \u3092\u4f7f\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3057\u305f\u3002 \u5148\u65e5\u3001\u3075\u3068\u65b0\u3057\u3044\u74b0\u5883\uff08\u3064\u307e\u308a\u65b0\u3057\u3044Git\uff09\u3092\u64cd\u4f5c\u3057\u3066\u3044\u3066\u3001 git status \u3092\u6253\u3064\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002 $ git status On branch hoge-branch Changes not staged for commit: (use \"git add <file>...\" to update wha\u2026","width":"100%"}