0

Here is the difference of testfile.txt between commit 319e2d8 and 24bf013(current checkout). The (TO-BE-DELETED) is expected to be deleted, however it's still in the current checkout 24bf013. How to git merge testfile.txt from 319e2d8 to local 24bf013 ?

$ git diff 319e2d8:testfile.txt 24bf013:testfile.txt
diff --git a/319e2d8:testfile.txt b/24bf013:testfile.txt/appointments.html
index 66f029ed..86601816 100755
--- a/testfile.txt
+++ b/testfile.txt
@@ -55,7 +55,7 @@
 data line 1
 data line 2
 data line 3
-<h1>data line 4</h1>
+<h1>data line 4(TO-BE-DELETED)</h1>
 data line 5
 data line 6
caot
  • 3,066
  • 35
  • 37

1 Answers1

0

It worked to merge 319e2d8 to local, and only commit testfile.txt.

caot
  • 3,066
  • 35
  • 37