SlideShare a Scribd company logo
1 of 74
Download to read offline
master
topic
$ git clone https://github.com/Joe-noh/motto_git
$ git checkout -b xxx-topic
$ vim test.rb
$ git commit -am 'modified'
$ git push origin xxx-topic
master
master
topic topic2
master
topic topic2
topic topic2
master
topic topic2
master
topic
master
topic
$ git checkout master
$ git pull origin master # master
$ git checkout xxx-topic
$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: modify test.rb
Using index info to reconstruct a base tree...
M test.rb
Falling back to patching base and 3-way merge...
1 class Hoge
2 <<<<<<< HEAD
3 def bar
4 =======
5 def baz
6 >>>>>>> master
7 end
8 end
NORMAL xxx-topic | test.rb
1 class Hoge
2 def bar
3 end
4 end
~
~
~
~
NORMAL xxx-topic | test.rb
$ vim test.rb
$ git add test.rb #
$ git rebase --continue
Applying: modify test.rb
topic
remote
local
topic
topic
topic
remote
local
--force-with-lease
topic(new)
master
topic
base master
topic topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
end
topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
end
topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
class Fuga
end
topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
class Fuga
end
topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
class Fuga
@v = 1
end
topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
class Fuga
@v = 1
end
topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
class Fuga
@v = 1
?
end
topic(new)
class Hoge
@v = 1
puts "C"
end
class Hoge
puts "A"
end
class Fuga
puts "B"
end
master base topic
class Fuga
@v = 1
?
end
topic(new)
topic(new)
master
topic
$ git checkout master
$ git pull origin master # master
$ git checkout xxx-topic
$ git merge master
Auto-merging test.rb
CONFLICT (content): Merge conflict in test.rb
Automatic merge failed; fix conflicts and then commit the result.
$ vim test.rb
$ git commit -a
1 Merge branch 'master' into xxx-topic
2
3 # Conflicts:
4 # test.rb
5 #
6 # ...
7 # ...
8 # ...
NORMAL xxx-topic | test.rb
$ git push origin xxx-topic
commit 25ce283d9d3c4da27c0226e19654b91c1baf06e3
Author: Joe-noh <honzawa.j@pepabo.com>
Date: Tue Jun 21 12:17:38 2016 +0900
commit f8263df7885c907e34b574524a7fc02702920d44
Author: Joe-noh <honzawa.j@pepabo.com>
Date: Tue Jun 21 12:16:28 2016 +0900
$ git revert 25ce283d #
[topic 1564168] Revert " "
1 file changed, 4 deletions(-)
commit 1564168380ec04480275ecd2b2ed9612001889fb
Author: Joe-noh <honzawa.j@pepabo.com>
Date: Tue Jun 21 12:58:14 2016 +0900
Revert " "
This reverts commit 25ce283d9d3c4da27c0226e19654b91c1baf06e3.
commit 25ce283d9d3c4da27c0226e19654b91c1baf06e3
Author: Joe-noh <honzawa.j@pepabo.com>
Date: Tue Jun 21 12:17:38 2016 +0900
$ git checkout master
$ git pull origin master # master
$ git checkout -b revert-topic #
$ git revert ?????? # revert
$ git push origin revert-topic #
commit 06a1792f1fb01b834d86514d15783eca4352606c
Merge: 97bf260 a392dd9
Author: Joe Honzawa <honzawa.j@pepabo.com>
Date: Mon Jun 20 19:46:10 2016 +0900
Merge pull request #2 from Joe-noh/topic
$ git revert 06a1792
$ git revert 06a1792
error: Commit 06a1792… is a merge but no -m option was given.
fatal: revert failed
$ git revert 06a1792
error: Commit 06a1792… is a merge but no -m option was given.
fatal: revert failed
-m
master
topic
$ git revert 06a1792 -m 1
[topic 3d621f4] Revert "Merge pull request #2 from Joe-noh/topic"
1 file changed, 4 deletions(-)
$ git revert 06a1792 -m 1
[topic 3d621f4] Revert "Merge pull request #2 from Joe-noh/topic"
1 file changed, 4 deletions(-)
$ git push origin revert-topic
git rebase -i <commit hash>
git cherry-pick <commit hash>
master rebase
master merge
git revert <commit>
git revert <merge-commit> -m 1
もっとgit

More Related Content

What's hot

GoLang & GoatCore
GoLang & GoatCore GoLang & GoatCore
GoLang & GoatCore
Sebastian Pożoga
 
Annette g09 job file for cyclohexene for niobium
Annette g09 job file for cyclohexene for niobiumAnnette g09 job file for cyclohexene for niobium
Annette g09 job file for cyclohexene for niobium
Dr Robert Craig PhD
 
Git branching model_for_tap_team
Git branching model_for_tap_teamGit branching model_for_tap_team
Git branching model_for_tap_team
Grzegorz Wilczynski
 
Annette g09 job file for cyclohexene
Annette g09 job file for cyclohexeneAnnette g09 job file for cyclohexene
Annette g09 job file for cyclohexene
Dr Robert Craig PhD
 

What's hot (20)

Get on with git
Get on with gitGet on with git
Get on with git
 
Formaldehye2 job program
Formaldehye2  job programFormaldehye2  job program
Formaldehye2 job program
 
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
 
Git
GitGit
Git
 
git - the basics
git - the basicsgit - the basics
git - the basics
 
Git Tutorial Yang Yang
Git Tutorial Yang YangGit Tutorial Yang Yang
Git Tutorial Yang Yang
 
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - LudwigsburgNews from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
 
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
 
How to become a Git power user
How to become a Git power userHow to become a Git power user
How to become a Git power user
 
Loading...git
Loading...gitLoading...git
Loading...git
 
Use of django at jolt online v3
Use of django at jolt online v3Use of django at jolt online v3
Use of django at jolt online v3
 
Simple Tips and Tricks with Ansible
Simple Tips and Tricks with AnsibleSimple Tips and Tricks with Ansible
Simple Tips and Tricks with Ansible
 
GoLang & GoatCore
GoLang & GoatCore GoLang & GoatCore
GoLang & GoatCore
 
Annette g09 job file for cyclohexene for niobium
Annette g09 job file for cyclohexene for niobiumAnnette g09 job file for cyclohexene for niobium
Annette g09 job file for cyclohexene for niobium
 
Git branching model_for_tap_team
Git branching model_for_tap_teamGit branching model_for_tap_team
Git branching model_for_tap_team
 
Curcumin job file
Curcumin job fileCurcumin job file
Curcumin job file
 
Annette g09 job file for cyclohexene
Annette g09 job file for cyclohexeneAnnette g09 job file for cyclohexene
Annette g09 job file for cyclohexene
 
Org Beamer
Org BeamerOrg Beamer
Org Beamer
 
Git basic and workflow
Git basic and workflowGit basic and workflow
Git basic and workflow
 
Bend time to your will with git
Bend time to your will with gitBend time to your will with git
Bend time to your will with git
 

Similar to もっとgit

Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
Victor Wong
 
Gitosis on Mac OS X Server
Gitosis on Mac OS X ServerGitosis on Mac OS X Server
Gitosis on Mac OS X Server
Yasuhiro Asaka
 
GIT rozproszony system kontroli wersji
GIT rozproszony system kontroli wersjiGIT rozproszony system kontroli wersji
GIT rozproszony system kontroli wersji
3camp
 

Similar to もっとgit (20)

git internals
git internalsgit internals
git internals
 
Get Good With Git
Get Good With GitGet Good With Git
Get Good With Git
 
Git
GitGit
Git
 
Git basics
Git basicsGit basics
Git basics
 
Version Control with Git for Beginners
Version Control with Git for BeginnersVersion Control with Git for Beginners
Version Control with Git for Beginners
 
Git for beginner
Git for beginnerGit for beginner
Git for beginner
 
Git For Beginer
Git For BeginerGit For Beginer
Git For Beginer
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Gitosis on Mac OS X Server
Gitosis on Mac OS X ServerGitosis on Mac OS X Server
Gitosis on Mac OS X Server
 
Learning Git with Workflows
Learning Git with WorkflowsLearning Git with Workflows
Learning Git with Workflows
 
Introducción a git y GitHub
Introducción a git y GitHubIntroducción a git y GitHub
Introducción a git y GitHub
 
Git walkthrough
Git walkthroughGit walkthrough
Git walkthrough
 
Git Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a BossGit Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a Boss
 
GIT rozproszony system kontroli wersji
GIT rozproszony system kontroli wersjiGIT rozproszony system kontroli wersji
GIT rozproszony system kontroli wersji
 
Did you git yet?
Did you git yet?Did you git yet?
Did you git yet?
 
Git使用
Git使用Git使用
Git使用
 
Introduction To Git Workshop
Introduction To Git WorkshopIntroduction To Git Workshop
Introduction To Git Workshop
 
Nicola Iarocci - Git stories from the front line - Codemotion Milan 2017
Nicola Iarocci - Git stories from the front line - Codemotion Milan 2017Nicola Iarocci - Git stories from the front line - Codemotion Milan 2017
Nicola Iarocci - Git stories from the front line - Codemotion Milan 2017
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 

More from Joe_noh

やってみた -URL外形監視-
やってみた -URL外形監視-やってみた -URL外形監視-
やってみた -URL外形監視-
Joe_noh
 

More from Joe_noh (20)

パフォーマンス改善のためにやったこと・やらなかったこと
パフォーマンス改善のためにやったこと・やらなかったことパフォーマンス改善のためにやったこと・やらなかったこと
パフォーマンス改善のためにやったこと・やらなかったこと
 
Vue.jsのユニットテスト
Vue.jsのユニットテストVue.jsのユニットテスト
Vue.jsのユニットテスト
 
Vuexと入力フォーム
Vuexと入力フォームVuexと入力フォーム
Vuexと入力フォーム
 
カラーミーAPIドキュメントの今後
カラーミーAPIドキュメントの今後カラーミーAPIドキュメントの今後
カラーミーAPIドキュメントの今後
 
サイクルOJTイントロダクション
サイクルOJTイントロダクションサイクルOJTイントロダクション
サイクルOJTイントロダクション
 
お産ウィークイントロダクション
お産ウィークイントロダクションお産ウィークイントロダクション
お産ウィークイントロダクション
 
モバイルアプリ研修イントロダクション
モバイルアプリ研修イントロダクションモバイルアプリ研修イントロダクション
モバイルアプリ研修イントロダクション
 
Webオペレーション研修イントロダクション
Webオペレーション研修イントロダクションWebオペレーション研修イントロダクション
Webオペレーション研修イントロダクション
 
Web開発研修イントロダクション
Web開発研修イントロダクションWeb開発研修イントロダクション
Web開発研修イントロダクション
 
リーンキャンバス
リーンキャンバスリーンキャンバス
リーンキャンバス
 
できないことはPortで外注
できないことはPortで外注できないことはPortで外注
できないことはPortで外注
 
DBにseedするライブラリつくった
DBにseedするライブラリつくったDBにseedするライブラリつくった
DBにseedするライブラリつくった
 
やってみた -URL外形監視-
やってみた -URL外形監視-やってみた -URL外形監視-
やってみた -URL外形監視-
 
Elixirだ 第6回
Elixirだ 第6回Elixirだ 第6回
Elixirだ 第6回
 
Elixirだ 第5回
Elixirだ 第5回Elixirだ 第5回
Elixirだ 第5回
 
Elixirだ 第4回
Elixirだ 第4回Elixirだ 第4回
Elixirだ 第4回
 
Elixirだ 第3回
Elixirだ 第3回Elixirだ 第3回
Elixirだ 第3回
 
Elixirだ 第2回
Elixirだ 第2回Elixirだ 第2回
Elixirだ 第2回
 
Elixirだ 第1回強化版 後半
Elixirだ 第1回強化版 後半Elixirだ 第1回強化版 後半
Elixirだ 第1回強化版 後半
 
Elixirだ 第1回強化版 前半
Elixirだ 第1回強化版 前半Elixirだ 第1回強化版 前半
Elixirだ 第1回強化版 前半
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

もっとgit

  • 1.
  • 2.
  • 4.
  • 5.
  • 6. $ git clone https://github.com/Joe-noh/motto_git $ git checkout -b xxx-topic $ vim test.rb $ git commit -am 'modified' $ git push origin xxx-topic
  • 8.
  • 9.
  • 10.
  • 11.
  • 16.
  • 19. $ git checkout master $ git pull origin master # master $ git checkout xxx-topic $ git rebase master First, rewinding head to replay your work on top of it... Applying: modify test.rb Using index info to reconstruct a base tree... M test.rb Falling back to patching base and 3-way merge...
  • 20. 1 class Hoge 2 <<<<<<< HEAD 3 def bar 4 ======= 5 def baz 6 >>>>>>> master 7 end 8 end NORMAL xxx-topic | test.rb
  • 21. 1 class Hoge 2 def bar 3 end 4 end ~ ~ ~ ~ NORMAL xxx-topic | test.rb
  • 22. $ vim test.rb $ git add test.rb # $ git rebase --continue Applying: modify test.rb
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 32.
  • 33.
  • 35.
  • 37. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic topic(new)
  • 38. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic topic(new)
  • 39. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic end topic(new)
  • 40. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic end topic(new)
  • 41. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic class Fuga end topic(new)
  • 42. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic class Fuga end topic(new)
  • 43. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic class Fuga @v = 1 end topic(new)
  • 44. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic class Fuga @v = 1 end topic(new)
  • 45. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic class Fuga @v = 1 ? end topic(new)
  • 46. class Hoge @v = 1 puts "C" end class Hoge puts "A" end class Fuga puts "B" end master base topic class Fuga @v = 1 ? end topic(new)
  • 48. $ git checkout master $ git pull origin master # master $ git checkout xxx-topic $ git merge master Auto-merging test.rb CONFLICT (content): Merge conflict in test.rb Automatic merge failed; fix conflicts and then commit the result. $ vim test.rb $ git commit -a
  • 49. 1 Merge branch 'master' into xxx-topic 2 3 # Conflicts: 4 # test.rb 5 # 6 # ... 7 # ... 8 # ... NORMAL xxx-topic | test.rb
  • 50. $ git push origin xxx-topic
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56. commit 25ce283d9d3c4da27c0226e19654b91c1baf06e3 Author: Joe-noh <honzawa.j@pepabo.com> Date: Tue Jun 21 12:17:38 2016 +0900 commit f8263df7885c907e34b574524a7fc02702920d44 Author: Joe-noh <honzawa.j@pepabo.com> Date: Tue Jun 21 12:16:28 2016 +0900
  • 57. $ git revert 25ce283d # [topic 1564168] Revert " " 1 file changed, 4 deletions(-)
  • 58. commit 1564168380ec04480275ecd2b2ed9612001889fb Author: Joe-noh <honzawa.j@pepabo.com> Date: Tue Jun 21 12:58:14 2016 +0900 Revert " " This reverts commit 25ce283d9d3c4da27c0226e19654b91c1baf06e3. commit 25ce283d9d3c4da27c0226e19654b91c1baf06e3 Author: Joe-noh <honzawa.j@pepabo.com> Date: Tue Jun 21 12:17:38 2016 +0900
  • 59.
  • 60.
  • 61. $ git checkout master $ git pull origin master # master $ git checkout -b revert-topic # $ git revert ?????? # revert $ git push origin revert-topic #
  • 62. commit 06a1792f1fb01b834d86514d15783eca4352606c Merge: 97bf260 a392dd9 Author: Joe Honzawa <honzawa.j@pepabo.com> Date: Mon Jun 20 19:46:10 2016 +0900 Merge pull request #2 from Joe-noh/topic
  • 63. $ git revert 06a1792
  • 64. $ git revert 06a1792 error: Commit 06a1792… is a merge but no -m option was given. fatal: revert failed
  • 65. $ git revert 06a1792 error: Commit 06a1792… is a merge but no -m option was given. fatal: revert failed -m
  • 66.
  • 68.
  • 69.
  • 70. $ git revert 06a1792 -m 1 [topic 3d621f4] Revert "Merge pull request #2 from Joe-noh/topic" 1 file changed, 4 deletions(-)
  • 71. $ git revert 06a1792 -m 1 [topic 3d621f4] Revert "Merge pull request #2 from Joe-noh/topic" 1 file changed, 4 deletions(-) $ git push origin revert-topic
  • 72. git rebase -i <commit hash> git cherry-pick <commit hash>
  • 73. master rebase master merge git revert <commit> git revert <merge-commit> -m 1