Git Product home page Git Product logo

demo_merge_commit_changes's Introduction

merge commit of b

git show

$ git show HEAD
commit 4351a35ca172efe033cb774a7fb8daa885f25f16 (HEAD -> master)
Merge: 5566823 ddd44dc
Author: me
Date:   Thu Mar 30 08:10:20 2023 +0200

    Merge branch 'b'

    # Conflicts:
    #       foo.txt

diff --cc foo.txt
index 2b4cd2b,011c698..98f128b
--- a/foo.txt
+++ b/foo.txt
@@@ -47,7 -47,7 +47,7 @@@
  47
  48
  49
- 42
 -4711
++123456789
  51
  52
  53

git diff (like SM)

git diff HEAD^ HEAD
diff --git a/foo.txt b/foo.txt
index 2b4cd2b..98f128b 100644
--- a/foo.txt
+++ b/foo.txt
@@ -47,7 +47,7 @@
 47
 48
 49
-42
+123456789
 51
 52
 53
@@ -87,8 +87,8 @@
 87
 88
 89
-90
-91
+900
+910
 92
 93
 94
@@ -96,5 +96,5 @@
 96
 97
 98
-99
-100
\ No newline at end of file
+990
+1000
\ No newline at end of file

merge commit of a

git show

git show HEAD^
commit 5566823f36ec3e4b77a746d3308edaa7e08fe1a6
Merge: 475b83c 5f90cd5
Author: me
Date:   Thu Mar 30 08:09:25 2023 +0200

    Merge branch 'a'

    # Conflicts:
    #       foo.txt

diff --cc foo.txt
index cffa327,f2c7778..2b4cd2b
--- a/foo.txt
+++ b/foo.txt
@@@ -47,7 -47,7 +47,7 @@@
  47
  48
  49
- 500
 -1620
++42
  51
  52

git diff (like SM)

git diff HEAD^^ HEAD^
diff --git a/foo.txt b/foo.txt
index cffa327..2b4cd2b 100644
--- a/foo.txt
+++ b/foo.txt
@@ -1,13 +1,13 @@
-1
-2
+10
+20
 3
 4
 5
 6
 7
 8
-9
-10
+90
+100
 11
 12
 13
@@ -47,7 +47,7 @@
 47
 48
 49
-500
+42
 51
 52
 53

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.