Last login: Wed Oct 28 18:48:34 on ttys000
Luksawee@LuksaweeMac ~ % cd Desktop
Luksawee@LuksaweeMac Desktop % mkdir gitFern
Luksawee@LuksaweeMac Desktop % cd gitFern
Luksawee@LuksaweeMac gitFern % git init
Initialized empty Git repository in /Users/Luksawee/Desktop/gitFern/.git/
Luksawee@LuksaweeMac gitFern % git add .
Luksawee@LuksaweeMac gitFern % echo "My name is: " > hello.txt
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "Initia Commit"
[master (root-commit) 2bdf055] Initia Commit
1 file changed, 1 insertion(+)
create mode 100644 hello.txt
Luksawee@LuksaweeMac gitFern % touch hello.txt
Luksawee@LuksaweeMac gitFern % open hello.txt
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add L"
[master f3fe588] add L
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add U"
[master 54f14ef] add U
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add K"
[master 7b5f645] add K
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add S"
[master 58676bb] add S
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add A again"
[master eca764a] add A again
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add W"
[master 122edae] add W
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add E"
[master 54208aa] add E
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add E2"
[master a3a705a] add E2
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git log
commit a3a705a26e5120bdf9161a65b0dc6d7a358ca5f5 (HEAD -> master)
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:24 2020 -0700
add E2
commit 54208aac544eec3f1d8ddfe1cfdd547a4cac268e
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:02 2020 -0700
add E
commit 122edaedafdd9427d69f80db718a0f231c2184f1
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:45 2020 -0700
add W
commit eca764ab4d27d75abafe82f7a44ecb6120f9338a
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:26 2020 -0700
add A again
commit f3fe588213c5a28a057af617eee570ff3fd29ab6
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:11:55 2020 -0700
add L
commit 2bdf05597167e940f660c60919e5d1915ed70f05
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:10:52 2020 -0700
Initia Commit
~
Luksawee@LuksaweeMac gitFern % git format patch f3fe588213c5a28a057af617eee570ff3fd29ab6 --std > my.patch
git: 'format' is not a git command. See 'git --help'.
Luksawee@LuksaweeMac gitFern % git format-patch f3fe588213c5a28a057af617eee570ff3fd29ab6 --std > my.patch
fatal: unrecognized argument: --std
Luksawee@LuksaweeMac gitFern % git format-patch f3fe588213c5a28a057af617eee570ff3fd29ab6 --stdout > my.patch
Luksawee@LuksaweeMac gitFern % git format-patch 2bdf05597167e940f660c60919e5d1915ed70f05 --stdout > myName.patch
Luksawee@LuksaweeMac gitFern % git apply --check myName.patch
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
Luksawee@LuksaweeMac gitFern % git tag -a V1 a3a705a26e5120bdf9161a65b0dc6d7a358ca5f5 -m "Version1"
Luksawee@LuksaweeMac gitFern % git log
commit a3a705a26e5120bdf9161a65b0dc6d7a358ca5f5 (HEAD -> master, tag: V1)
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:24 2020 -0700
add E2
commit 54208aac544eec3f1d8ddfe1cfdd547a4cac268e
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:02 2020 -0700
add E
commit 122edaedafdd9427d69f80db718a0f231c2184f1
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:45 2020 -0700
add W
commit eca764ab4d27d75abafe82f7a44ecb6120f9338a
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:26 2020 -0700
add A again
commit 58676bbc57fed085e6c31872646444b5eeaf74a2
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:03 2020 -0700
add S
commit 2bdf05597167e940f660c60919e5d1915ed70f05
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:10:52 2020 -0700
Initia Commit
Luksawee@LuksaweeMac gitFern %
-----
PATCH
From f3fe588213c5a28a057af617eee570ff3fd29ab6 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:11:55 -0700
Subject: [PATCH 1/8] add L
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 34459eb..964db7a 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is:
+My name is: L
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 54f14ef095eba151047ab06f2852f407eeab5e11 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:12:13 -0700
Subject: [PATCH 2/8] add U
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 964db7a..123907e 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: L
\ No newline at end of file
+My name is: LU
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 7b5f64535e1d0af079396451dc3a433e58b70aee Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:12:33 -0700
Subject: [PATCH 3/8] add K
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 123907e..9857e66 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: LU
\ No newline at end of file
+My name is: LUK
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 58676bbc57fed085e6c31872646444b5eeaf74a2 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:13:03 -0700
Subject: [PATCH 4/8] add S
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 9857e66..d309462 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: LUK
\ No newline at end of file
+My name is: LUKS
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From eca764ab4d27d75abafe82f7a44ecb6120f9338a Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:13:26 -0700
Subject: [PATCH 5/8] add A again
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index d309462..d74d2cf 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: LUKS
\ No newline at end of file
+My name is: LUKSA
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 122edaedafdd9427d69f80db718a0f231c2184f1 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:13:45 -0700
Subject: [PATCH 6/8] add W
---
hello.txt | 2 +-
1 file changed, 1 inser
(
Edited: 2020-10-28)
Last login: Wed Oct 28 18:48:34 on ttys000
Luksawee@LuksaweeMac ~ % cd Desktop
Luksawee@LuksaweeMac Desktop % mkdir gitFern
Luksawee@LuksaweeMac Desktop % cd gitFern
Luksawee@LuksaweeMac gitFern % git init
Initialized empty Git repository in /Users/Luksawee/Desktop/gitFern/.git/
Luksawee@LuksaweeMac gitFern % git add .
Luksawee@LuksaweeMac gitFern % echo "My name is: " > hello.txt
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "Initia Commit"
[master (root-commit) 2bdf055] Initia Commit
1 file changed, 1 insertion(+)
create mode 100644 hello.txt
Luksawee@LuksaweeMac gitFern % touch hello.txt
Luksawee@LuksaweeMac gitFern % open hello.txt
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add L"
[master f3fe588] add L
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add U"
[master 54f14ef] add U
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add K"
[master 7b5f645] add K
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add S"
[master 58676bb] add S
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add A again"
[master eca764a] add A again
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add W"
[master 122edae] add W
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add E"
[master 54208aa] add E
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git add hello.txt
Luksawee@LuksaweeMac gitFern % git commit -a -m "add E2"
[master a3a705a] add E2
1 file changed, 1 insertion(+), 1 deletion(-)
Luksawee@LuksaweeMac gitFern % git log
commit a3a705a26e5120bdf9161a65b0dc6d7a358ca5f5 (HEAD -> master)
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:24 2020 -0700
add E2
commit 54208aac544eec3f1d8ddfe1cfdd547a4cac268e
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:02 2020 -0700
add E
commit 122edaedafdd9427d69f80db718a0f231c2184f1
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:45 2020 -0700
add W
commit eca764ab4d27d75abafe82f7a44ecb6120f9338a
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:26 2020 -0700
add A again
commit f3fe588213c5a28a057af617eee570ff3fd29ab6
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:11:55 2020 -0700
add L
commit 2bdf05597167e940f660c60919e5d1915ed70f05
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:10:52 2020 -0700
Initia Commit
~
Luksawee@LuksaweeMac gitFern % git format patch f3fe588213c5a28a057af617eee570ff3fd29ab6 --std > my.patch
git: 'format' is not a git command. See 'git --help'.
Luksawee@LuksaweeMac gitFern % git format-patch f3fe588213c5a28a057af617eee570ff3fd29ab6 --std > my.patch
fatal: unrecognized argument: --std
Luksawee@LuksaweeMac gitFern % git format-patch f3fe588213c5a28a057af617eee570ff3fd29ab6 --stdout > my.patch
Luksawee@LuksaweeMac gitFern % git format-patch 2bdf05597167e940f660c60919e5d1915ed70f05 --stdout > myName.patch
Luksawee@LuksaweeMac gitFern % git apply --check myName.patch
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
error: patch failed: hello.txt:1
error: hello.txt: patch does not apply
Luksawee@LuksaweeMac gitFern % git tag -a V1 a3a705a26e5120bdf9161a65b0dc6d7a358ca5f5 -m "Version1"
Luksawee@LuksaweeMac gitFern % git log
commit a3a705a26e5120bdf9161a65b0dc6d7a358ca5f5 (HEAD -> master, tag: V1)
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:24 2020 -0700
add E2
commit 54208aac544eec3f1d8ddfe1cfdd547a4cac268e
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:14:02 2020 -0700
add E
commit 122edaedafdd9427d69f80db718a0f231c2184f1
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:45 2020 -0700
add W
commit eca764ab4d27d75abafe82f7a44ecb6120f9338a
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:26 2020 -0700
add A again
commit 58676bbc57fed085e6c31872646444b5eeaf74a2
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:13:03 2020 -0700
add S
commit 2bdf05597167e940f660c60919e5d1915ed70f05
Author: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed Oct 28 20:10:52 2020 -0700
Initia Commit
Luksawee@LuksaweeMac gitFern %
---------
PATCH
From f3fe588213c5a28a057af617eee570ff3fd29ab6 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:11:55 -0700
Subject: [PATCH 1/8] add L
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 34459eb..964db7a 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is:
+My name is: L
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 54f14ef095eba151047ab06f2852f407eeab5e11 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:12:13 -0700
Subject: [PATCH 2/8] add U
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 964db7a..123907e 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: L
\ No newline at end of file
+My name is: LU
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 7b5f64535e1d0af079396451dc3a433e58b70aee Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:12:33 -0700
Subject: [PATCH 3/8] add K
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 123907e..9857e66 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: LU
\ No newline at end of file
+My name is: LUK
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 58676bbc57fed085e6c31872646444b5eeaf74a2 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:13:03 -0700
Subject: [PATCH 4/8] add S
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index 9857e66..d309462 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: LUK
\ No newline at end of file
+My name is: LUKS
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From eca764ab4d27d75abafe82f7a44ecb6120f9338a Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:13:26 -0700
Subject: [PATCH 5/8] add A again
---
hello.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hello.txt b/hello.txt
index d309462..d74d2cf 100644
--- a/hello.txt
+++ b/hello.txt
@@ -1 +1 @@
-My name is: LUKS
\ No newline at end of file
+My name is: LUKSA
\ No newline at end of file
--
2.24.3 (Apple Git-128)
From 122edaedafdd9427d69f80db718a0f231c2184f1 Mon Sep 17 00:00:00 2001
From: LuksaweeP <luksawee.phansri@gmail.com>
Date: Wed, 28 Oct 2020 20:13:45 -0700
Subject: [PATCH 6/8] add W
---
hello.txt | 2 +-
1 file changed, 1 inser