{"id":5025,"date":"2020-08-30T22:03:37","date_gmt":"2020-08-30T13:03:37","guid":{"rendered":"https:\/\/greentown.tokyo\/?p=5025"},"modified":"2020-08-31T06:39:40","modified_gmt":"2020-08-30T21:39:40","slug":"git-fix-specific-branch","status":"publish","type":"post","link":"https:\/\/greentown.tokyo\/?p=5025","title":{"rendered":"Git \u3067\u4e0d\u5177\u5408\u5165\u308a\u306e\u30d7\u30eb\u30ea\u30af\u304c\u30de\u30fc\u30b8\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u3051\u3069\u305d\u306e\u4e0d\u5177\u5408\u30d6\u30e9\u30f3\u30c1\u3060\u3051\u4f10\u63a1\u3057\u305f\u3044"},"content":{"rendered":"\n<p>Flutter\u3067\u3001iOS\u306eLuncher\u306b\u753b\u50cf\u3092\u30bb\u30c3\u30c8\u3057\u3066\u3001\u3077\u308b\u308a\u304f\u3057\u305f\u2192\u307e\u30fc\u3058\u3057\u3066\u3082\u3089\u3063\u305f\u3001\u306e\u3067\u3059\u304c\u3001\u52d5\u304b\u306a\u304b\u3063\u305f\u3088\u3046\u3067\u3057\u3066&#8230;\uff08\u3059\u307f\u307e\u305b\u3093\u3067\u3059\uff09<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk1.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk1.png\" alt=\"\" width=\"1248\" height=\"342\" class=\"alignnone size-full wp-image-5029\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk1.png 1248w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk1-300x82.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk1-1024x281.png 1024w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk1-768x210.png 768w\" sizes=\"(max-width: 1248px) 100vw, 1248px\" \/><\/a><\/p>\n<p>\u3045\u3046\u301c\u3093\u3068\u301c<\/p>\n<p>\u305d\u306e\u30d6\u30e9\u30f3\u30c1\u3060\u3051\u3001\u4fee\u6b63\u3057\u305f\u3044\u306e\u3060\u3051\u3069&#8230;\u3044\u304d\u306a\u308a git rever\u3067\u826f\u3044\u306e\u304b\u306a\uff1f<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk3.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk3.png\" alt=\"\" width=\"1214\" height=\"154\" class=\"alignnone size-full wp-image-5044\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk3.png 1214w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk3-300x38.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk3-1024x130.png 1024w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk3-768x97.png 768w\" sizes=\"(max-width: 1214px) 100vw, 1214px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2.png\"><\/a><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2.png\"><\/a><\/p>\n<p><\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2-2.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2-2.png\" alt=\"\" width=\"1920\" height=\"802\" class=\"alignnone size-full wp-image-5055\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2-2.png 1920w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2-2-300x125.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2-2-1024x428.png 1024w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2-2-768x321.png 768w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk2-2-1536x642.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk4.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk4.png\" alt=\"\" width=\"1234\" height=\"556\" class=\"alignnone size-full wp-image-5045\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk4.png 1234w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk4-300x135.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk4-1024x461.png 1024w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk4-768x346.png 768w\" sizes=\"(max-width: 1234px) 100vw, 1234px\" \/><\/a><\/p>\n<p>\u3075\u3080\u3001<strong><span style=\"color: #ff0000;\">\u4e0d\u5177\u5408\u5165\u308a\u306e\u6700\u65b0master\u3092\u843d\u3068\u3057\u3066<\/span><\/strong>\u304d\u3066\u3001\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3057\u305f\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u3001<strong><span style=\"color: #ff0000;\">revert\u3067\u4f10\u63a1<\/span><\/strong>\u3059\u308b\u3068&#8230;.<\/p>\n<p><a href=\"https:\/\/qiita.com\/RyoU24\/items\/e37c7242544fd1da81be\">https:\/\/qiita.com\/RyoU24\/items\/e37c7242544fd1da81be<\/a><\/p>\n<p>\u2191\u6559\u3048\u3066\u3082\u3089\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk5.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk5.png\" alt=\"\" width=\"1244\" height=\"536\" class=\"alignnone size-full wp-image-5047\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk5.png 1244w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk5-300x129.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk5-1024x441.png 1024w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk5-768x331.png 768w\" sizes=\"(max-width: 1244px) 100vw, 1244px\" \/><\/a><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<p>\u300cgit log\u300d\u3067 commit id\u3092\u8abf\u3079\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-git\" data-lang=\"Git\"><code>$ git log\n:\n:\ncommit a5a1460eea9186c26533ba1300880d262f17ba8a (origin\/feature\/misato-20200825-luncher, feature\/misato-20200825-luncher)\nAuthor: \u79c1 &lt;\u79c1@gmail.com&gt;\nDate:   Wed Aug 26 01:42:08 2020 +0900\n\n    set home app icon.\n\ncommit 5be75a858bc8916b1db0c4126bb0d74b7f7bb943 (origin\/feature\/misato-20200825, feature\/misato-20200825)\nAuthor: \u79c1 &lt;\u79c1@gmail.com&gt;<\/code><\/pre><\/div>\n\n\n\n<p>commit a5a1460eea9186c26533ba1300880d262f17ba8a (origin\/feature\/misato-20200825-luncher, feature\/misato-20200825-luncher)<\/p>\n\n\n\n<p>\u2191\u3053\u308c\u304c\u3001\u4e0d\u5177\u5408\u8d77\u3053\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u3002\u30de\u30fc\u30b8\u3055\u308c\u3061\u3083\u3063\u305f\u3084\u3064\u3002\uff08\u4f10\u63a1\u3059\u308b\u3084\u3064\uff09<\/p>\n\n\n\n<p>commit 5be75a858bc8916b1db0c4126bb0d74b7f7bb943 (origin\/feature\/misato-20200825, feature\/misato-20200825)<\/p>\n<p>\u2191\u3053\u308c\u306b\u623b\u3059\u3093\u3060\u3051\u3069\u3002\u3069\u3063\u3061\u306eID\u3092\u6307\u5b9a\u3059\u308b\u306e\u3060\uff1f\uff08<span>a5a1460eea9186c26533ba1300880d262f17ba8a\u3067\u826f\u3044\u3063\u307d\u3044\uff09<\/span><\/p>\n<p>\u2460\u300cq\u300d\u3067\u3001got log \u3092\u629c\u3051\u3066\u3001master\u306b\u5207\u308a\u66ff\u3048\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-git\" data-lang=\"Git\"><code>$ git checkout master\nM       ios\/Runner.xcodeproj\/project.pbxproj\nSwitched to branch &#39;master&#39;\nYour branch is up to date with &#39;origin\/master&#39;.<\/code><\/pre><\/div>\n\n\n\n<p>M \u3063\u3066\u306a\u3093\u3060\uff1f<\/p>\n<p><span class=\"hutoaka\">M<\/span> ios\/Runner.xcodeproj\/project.pbxproj<\/p>\n<p>\uff08\u30d6\u30ed\u30b0\u306b\u66f8\u304f\u304b\u3089\u8abf\u3079\u308b\u306e\u3067\u3042\u3063\u3066\u3001\u305f\u3076\u3093\u66f8\u304b\u306a\u304b\u3063\u305f\u3089\u30b9\u30eb\u30fc\u3057\u3066\u3044\u308b\uff09<\/p>\n<p><a href=\"https:\/\/git-scm.com\/book\/ja\/v2\/Git-\u306e\u57fa\u672c-\u5909\u66f4\u5185\u5bb9\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u306e\u8a18\u9332\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8\u306b\u3088\u308b\u3068&#8230;<\/a><\/p>\n<blockquote>\n<pre class=\"highlight\"><code class=\"language-console\" data-lang=\"console\">$ git status -s\n M README\nMM Rakefile\nA  lib\/git.rb\nM  lib\/simplegit.rb\n?? LICENSE.txt<\/code><\/pre>\n<p><span>\u307e\u3060\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u306b\u306f`??`\u304c\u3001\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u306f`A`\u304c\u3001\u5909\u66f4\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u306f`M`\u304c\u3001\u3068\u3044\u3063\u305f\u3088\u3046\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5de6\u5074\u306b\u6587\u5b57\u5217\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 \u5185\u5bb9\u306f2\u6587\u5b57\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3059\u30021\u6587\u5b57\u76ee\u306f\u30b9\u30c6\u30fc\u30b8\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u72b6\u614b\u3092\u30012\u6587\u5b57\u306f\u30d5\u30a1\u30a4\u30eb\u304c\u5909\u66f4\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u4f8b\u3067\u3044\u3046\u3068\u3001`README`\u30d5\u30a1\u30a4\u30eb\u306f\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0a\u306b\u3042\u3063\u3066\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u3051\u308c\u3069\u30b9\u30c6\u30fc\u30b8\u3055\u308c\u3066\u306f\u3044\u307e\u305b\u3093\u3002 `lib\/simplegit.rb`\u30d5\u30a1\u30a4\u30eb\u306f\u5909\u66f4\u6e08\u307f\u3067\u30b9\u30c6\u30fc\u30b8\u3082\u3055\u308c\u3066\u3044\u307e\u3059\u3002 `Rakefile`\u306e\u307b\u3046\u306f\u3069\u3046\u304b\u3068\u3044\u3046\u3068\u3001\u5909\u66f4\u3055\u308c\u30b9\u30c6\u30fc\u30b8\u3055\u308c\u305f\u3042\u3068\u3001\u307e\u305f\u5909\u66f4\u3055\u308c\u305f\u3001\u3068\u3044\u3046\u72b6\u614b\u3067\u3059\u3002\u5909\u66f4\u306e\u5185\u5bb9\u306b\u30b9\u30c6\u30fc\u30b8\u3055\u308c\u305f\u3082\u306e\u3068\u305d\u3046\u3067\u306a\u3044\u3082\u306e\u304c\u3042\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<\/blockquote>\n<p>\u3075\u3080\u3075\u3080\u3001\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u3055\u3063\u304d\u306eM\u306e\u3084\u3064\u306f<\/p>\n<p><span style=\"color: #3366ff;\"><strong>\u30b9\u30c6\u30fc\u30b8\u3055\u308c\u3066\u3044\u3066\u3001\u304b\u3064\u5909\u66f4\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3002<\/strong><\/span><\/p>\n<p>\u304c\u3001\u6b8b\u3063\u3066\u3044\u308b\u3088\uff01\u3068\u3044\u3046\u3053\u3068\u3002\u591a\u5206\u300cgit pull origin master\u300d\u304c\u5931\u6557\u3059\u308b\u3002<\/p>\n<p>\u2461\u6700\u65b0\u306e\u30ea\u30e2\u30fc\u30c8master\u30d6\u30e9\u30f3\u30c1\u3092\u3001\u30ed\u30fc\u30ab\u30ebmaster\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-git\" data-lang=\"Git\"><code>$ git pull origin master\n:\n:\nerror: Your local changes to the following files would be overwritten by merge:\n        ios\/Runner.xcodeproj\/project.pbxproj\nPlease commit your changes or stash them before you merge.\nAborting<\/code><\/pre><\/div>\n\n\n\n<p>\u5931\u6557\u3057\u305f\u3002<\/p>\n<p>\u300cgit reset &#8211;hard HEAD\u300d<\/p>\n<p>\u4e0d\u8981\u306a\u5909\u66f4\u3092\u3001\u4ee5\u524d\u6559\u308f\u3063\u305f\u300c\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3059\u308b\u300d\u9b54\u6cd5\u306e\u30b3\u30de\u30f3\u30c9&#8230;. \u3092\u5b9f\u884c\u3059\u308b\u3002\u4eba\u751f\u306b\u304a\u3044\u3066\u3082\u3053\u306e\u9b54\u6cd5\u304c\u3042\u3063\u305f\u3089\u7d20\u6674\u3089\u3057\u3044\u306e\u306b&#8230;\u30d0\u30c3\u30af\u30fb\u30c8\u30a5\u30fb\u30b6\u30fb\u30d5\u30e5\u30fc\u30c1\u30e3\u30fc&#x1f680;&#x1f680;&#x1f680;<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-git\" data-lang=\"Git\"><code>$ git reset --hard HEAD\nHEAD is now at 3d1b36c child<\/code><\/pre><\/div>\n\n\n\n<p>\u518d\u5ea6\u300cgit pull origin master\u300d\u3092\u5b9f\u884c\u3057\u305f\u3089\u3001\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u2462\u4e0d\u5177\u5408\u30d6\u30e9\u30f3\u30c1\u306e\u4f10\u63a1<\/p>\n<p>revert: <span>\u6307\u5b9a\u3057\u305f\u30b3\u30df\u30c3\u30c8\u30cf\u30c3\u30b7\u30e5\u3092<span style=\"color: #ff0000;\">\u6253\u3061\u6d88\u3059<span class=\"st-mymarker-s\"><strong>\u30b3\u30df\u30c3\u30c8\u3092\u65b0\u305f\u306b\u884c\u3046<\/strong><\/span><\/span>\u3002<\/span><\/p>\n<p>\u6559\u3048\u3066\u3082\u3089\u3063\u305f\u30b5\u30a4\u30c8\u306b\u306f<\/p>\n<p><span>\u300c<\/span><b data-stringify-type=\"bold\">(4)\u30de\u30fc\u30b8\u30b3\u30df\u30c3\u30c8\u3092\u53d6\u308a\u6d88\u3057\u305f\u3044<\/b><span>\u300d\u306e\u7ae0\u306b\u300crevert\u3057\u3088\u3046\u3068\u3057\u305f\u30b3\u30df\u30c3\u30c8\u304c\u30de\u30fc\u30b8\u30b3\u30df\u30c3\u30c8\u3060\u3063\u305f\u5834\u5408\u306b\u306f\u3001<\/span><code data-stringify-type=\"code\" class=\"c-mrkdwn__code\">m(mainline\u30aa\u30d7\u30b7\u30e7\u30f3)<\/code><span>\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u3051\u3069\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u3057\u3067\u3082OK\u307f\u305f\u3044\u3002<\/span><\/p>\n<p>git show \u3057\u3066\u307f\uff1f\u3068\u8a00\u308f\u308c\u305f\u306e\u3067\u3084\u3063\u3066\u307f\u308b\u3070\u3044..<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk6.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk6.png\" alt=\"\" width=\"812\" height=\"168\" class=\"alignnone size-full wp-image-5056\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk6.png 812w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk6-300x62.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2020\/08\/talk6-768x159.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n\n\n\n<p>\u5909\u66f4\u524d\u306eshow<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-git\" data-lang=\"Git\"><code>$ git show\ncommit af0226a64455243c1d608140c54fbd7589fcfb86 (HEAD -&gt; master, origin\/master, origin\/HEAD)\nMerge: 3d1b36c 9fdc0e0\nAuthor: hoge hoge &lt;hoge@hoge&gt;\nDate:   Fri Aug 28 05:35:18 2020 +0900\n\n    Merge pull request #110 from fugafuga\/feature\/misato-20200827-luncher\n    \n    Set luncher image.<\/code><\/pre><\/div>\n\n\n\n<p>\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3001git revert \u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-git\" data-lang=\"Git\"><code>git revert a5a1460eea9186c26533ba1300880d262f17ba8a\nRemoving ios\/Runner\/Assets.xcassets\/AppIcon.appiconset\/Icon-App-72x72@2x.png\nRemoving ios\/Runner\/Assets.xcassets\/AppIcon.appiconset\/Icon-App-72x72@1x.png\n\uff1a\n\uff1a<\/code><\/pre><\/div>\n\n\n\n<p>\u5909\u66f4\u5f8c\u306e git show<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-git\" data-lang=\"Git\"><code>diff --git a\/pubspec.yaml b\/pubspec.yaml\nindex 427d83d..8db13bd 100644\n--- a\/pubspec.yaml\n+++ b\/pubspec.yaml\n@@ -33,16 +33,11 @@ dependencies:\n   scoped_model: 1.0.1\n   provider: ^4.0.2\n   flutter_svg: ^0.17.0\n-  flutter_launcher_icons: ^0.7.5\n \n dev_dependencies:\n   flutter_test:\n     sdk: flutter\n \n-flutter_icons:\n-  # android: &quot;launcher_icon&quot;\n-  ios: true\n-  image_path: &quot;assets\/icons\/ic_app.png&quot;<\/code><\/pre><\/div>\n\n\n\n<p>\u300c+++ b\/pubspec.yaml\u300d\u5909\u66f4\u3057\u305f\u3088\u3001\u300c- flutter_launcher_icons: ^0.7.5\u300d\u3053\u308c\u6d88\u3048\u3066\u308b\u611f\u3058\u3067commit\u3057\u305f\u3067\u301c<\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u3001\u3068\u7406\u89e3\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u4e00\u5ea6\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u52d5\u304b\u3057\u3001\u5909\u66f4\u304c\u623b\u3063\u3066\u308b\u304b\u78ba\u8a8d&#8230;\u2192 \u623b\u3063\u3066\u3044\u305f\u3002\uff08\u5b9f\u3092\u8a00\u3046\u3068\u9055\u3046\u30d6\u30e9\u30f3\u30c1\u3092revert\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001<span class=\"st-mymarker-s\">revert\u3057\u305f\u3068\u304d\u306ecommit<\/span>\u3092\u3082\u3046\u4e00\u5ea6revert\u3057\u305f\u3002git \u3057\u3085\u3054\u3044&#8230;\uff09<\/p>\n<p>\u3067<\/p>\n<p>\u2463 \u3067\u4e00\u5fdc\u3001git status\u3067\u72b6\u614b\u78ba\u8a8d\u3057\u3066\u3001add \u3068\u304b commit \u305b\u305a\u306b\u3001push\u3092\u5b9f\u884c\u3002<\/p>\n<p>\u2464 GitHub\u4e0a\u3067\u3001\u30d7\u30eb\u30ea\u30af\u3057\u305f\u3002\u2190\u3044\u307e\u30b3\u30b3<\/p>\n<p>\u2465 \u4e0d\u5177\u5408\u304c\u623b\u3063\u3066\u308b\u304b\u78ba\u8a8d\u3057\u3066\u3082\u3089\u3063\u3066\u3001OK\u3060\u3063\u305f\u3089master\u3092pull\u3059\u308b\u3002<\/p>\n<p>\u2466 \u307e\u305f\u30d6\u30e9\u30f3\u30c1\u3092\u304d\u3063\u3066\u3001\u4fee\u6b63\u3084\u308a\u306a\u304a\u3057\u3002<\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u3002<\/p>\n<p>Git\u4e2d\u7d1a\u8005\u3078\u306e\u9053\u306e\u308a\u306f\u306a\u304c\u3044&#8230;.<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u3044\u3064\u3082\u30a2\u30c9\u30d0\u30a4\u30b9\u304f\u308c\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u6c0f\u3001\u4ed5\u4e8b\u3067\u3082\u306a\u3044\u306e\u306b\u8cb4\u91cd\u306a\u304a\u6642\u9593\u5272\u3044\u3066\u6559\u3048\u3066\u3044\u305f\u3060\u3044\u3066\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p>\u81ea\u5206\u3082\u8ca2\u732e\u3067\u304d\u308b\u7acb\u5834\u306e\u4eba\u9593\u306b\u306a\u3089\u306a\u3051\u308c\u3070&#8230;<\/p>\n<h4>\u8ffd\u8a18<\/h4>\n<p>\u306a\u3093\u3060\u304b\u3093\u3060\u3001\u3054\u3061\u3083\u3054\u3061\u3083\u64cd\u4f5c\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3059\u304c\u3001revert\u306f1\u56de\u306e\u307f\u3067OK\u3060\u3063\u305f\u307f\u305f\u3044\u3002\uff084\u56de\u3082revert\u3057\u3066\u3057\u307e\u3063\u305f..\uff09<\/p>\n<p>\u3075\u3049\u301c\u3001\u30ed\u30fc\u30ab\u30eb\u304c\u3050\u3061\u3083\u3050\u3061\u3083\u306b\u306a\u3063\u305f\u304b\u3082\u30fc\u3001\u3069\u3059\u308a\u3083\u3044\u3044\u3093\u3060\u301c\u301c\u301c\u301c&#x1f976;<\/p>\n<p>\u3068\u304b\u3001\u305d\u3093\u306a\u5fc3\u914d\u306f\u7121\u7528\u3060\u3063\u305f\u3088\u3046\u3067\u3001\u30d7\u30eb\u30ea\u30af\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u3068\u306f\u5225\u306b\u3001\u3082\u3046\u4e00\u5ea6<\/p>\n<ol>\n<li>master\u306b\u3082\u3069\u308b\u3002<\/li>\n<li>New\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u308b\u3002<\/li>\n<li>git revert {commit id}<\/li>\n<li>push\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u3060\u3051\u3067\u826f\u304b\u3063\u305f&#8230;<\/p>\n<p>\u52c9\u5f37\u306b\u306a\u3063\u305f..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ git log : : commit a5a1460eea9186c26533ba1300880d262f17ba8a (origin\/feature\/misato-20200825-lunche &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5060,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,79],"tags":[],"class_list":["post-5025","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flutter","category-note"],"_links":{"self":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5025"}],"collection":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5025"}],"version-history":[{"count":30,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5025\/revisions"}],"predecessor-version":[{"id":5068,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5025\/revisions\/5068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/media\/5060"}],"wp:attachment":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}