2021-04-13

Apr 14 In-Class Exercise Thread .

Please post your solutions to the Apr 14 In-Class Exercise to this thread.

Best,

Chris

Please post your solutions to the Apr 14 In-Class Exercise to this thread. Best, Chris
2021-04-14

-- Apr 14 In-Class Exercise Thread
((resource:my.patch|Resource Description for my.patch)) ((resource:in_class_exercise.png|Resource Description for in_class_exercise.png))

-- Apr 14 In-Class Exercise Thread

From 61c9049942a9af08bef1b4b7ae09da1940f94ebe Mon Sep 17 00:00:00 2001 From: Dai Le <dai.n.le@sjsu.edu> Date: Wed, 14 Apr 2021 16:16:44 -0700 Subject: [PATCH] third commit


my.patch | 0 welcome.txt | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 my.patch

diff --git a/my.patch b/my.patch new file mode 100644 index 0000000..e69de29 diff --git a/welcome.txt b/welcome.txt index 30109e3..ba4c514 100644 --- a/welcome.txt +++ b/welcome.txt @@ -1 +1 @@

  • CS 172

+Welcome

2.24.1 (Apple Git-126)

Resource Description for Screen Shot 2021-04-14 at 4.17.26 PM.png

From 61c9049942a9af08bef1b4b7ae09da1940f94ebe Mon Sep 17 00:00:00 2001 From: Dai Le <dai.n.le@sjsu.edu> Date: Wed, 14 Apr 2021 16:16:44 -0700 Subject: [PATCH] third commit --- my.patch | 0 welcome.txt | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 my.patch diff --git a/my.patch b/my.patch new file mode 100644 index 0000000..e69de29 diff --git a/welcome.txt b/welcome.txt index 30109e3..ba4c514 100644 --- a/welcome.txt +++ b/welcome.txt @@ -1 +1 @@ - CS 172 +Welcome -- 2.24.1 (Apple Git-126) ((resource:Screen Shot 2021-04-14 at 4.17.26 PM.png|Resource Description for Screen Shot 2021-04-14 at 4.17.26 PM.png))

-- Apr 14 In-Class Exercise Thread
((resource:single_file.patch|Resource Description for single_file.patch)) ((resource:in class exercise 4-14.PNG|Resource Description for in class exercise 4-14.PNG))

-- Apr 14 In-Class Exercise Thread

&lt;nowiki&gt; nateg@NATES-DESKTOP MINGW64 ~/Documents/Code $ git init gitLabCS174 Initialized empty Git repository in C:/Users/nateg/Documents/Code/gitLabCS174/.git/

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code $ cd gitLabCS174/

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ vi welcome.txt

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git add . warning: LF will be replaced by CRLF in welcome.txt. The file will have its original line endings in your working directory

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git commit -m &#039;added hello&#039; [master (root-commit) 4c0ffaf] added hello 1 file changed, 1 insertion(+) create mode 100644 welcome.txt

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ vi welcome.txt

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git add . warning: LF will be replaced by CRLF in welcome.txt. The file will have its original line endings in your working directory

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git commit -m &quot;added from:&quot; [master 03fa64f] added from: 1 file changed, 1 insertion(+), 1 deletion(-)

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ vi welcome.txt

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git add . warning: LF will be replaced by CRLF in welcome.txt. The file will have its original line endings in your working directory

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git commit -m &#039;added Nathanael&#039; [master 6a63ff9] added Nathanael 1 file changed, 1 insertion(+), 1 deletion(-)

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git tag -a v1.0 -m &#039;version 1.0&#039;

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git tag v1.0

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git log commit 6a63ff9512ab84ea8fa0ef0fc9737786ac81cbf1 (HEAD -&gt; master, tag: v1.0) Author: naterpotatoers &lt;nate.garza@hotmail.com&gt; Date: Wed Apr 14 16:26:24 2021 -0700

added Nathanael

commit 03fa64fb994e8aef90ae17b1845afce76c89fd54 Author: naterpotatoers &lt;nate.garza@hotmail.com&gt; Date: Wed Apr 14 16:25:53 2021 -0700

added from:

commit 4c0ffaf6baf9d28a63835fe0c979d0a57d66d72e Author: naterpotatoers &lt;nate.garza@hotmail.com&gt; Date: Wed Apr 14 16:25:24 2021 -0700

added hello

nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master)

&lt;/nowiki&gt;

Resource Description for gitLabSessionScreenshotFixed.jpg

(Edited: 2021-04-14)
<nowiki> nateg@NATES-DESKTOP MINGW64 ~/Documents/Code $ git init gitLabCS174 Initialized empty Git repository in C:/Users/nateg/Documents/Code/gitLabCS174/.git/ nateg@NATES-DESKTOP MINGW64 ~/Documents/Code $ cd gitLabCS174/ nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ vi welcome.txt nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git add . warning: LF will be replaced by CRLF in welcome.txt. The file will have its original line endings in your working directory nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git commit -m 'added hello' [master (root-commit) 4c0ffaf] added hello 1 file changed, 1 insertion(+) create mode 100644 welcome.txt nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ vi welcome.txt nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git add . warning: LF will be replaced by CRLF in welcome.txt. The file will have its original line endings in your working directory nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git commit -m "added from:" [master 03fa64f] added from: 1 file changed, 1 insertion(+), 1 deletion(-) nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ vi welcome.txt nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git add . warning: LF will be replaced by CRLF in welcome.txt. The file will have its original line endings in your working directory nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git commit -m 'added Nathanael' [master 6a63ff9] added Nathanael 1 file changed, 1 insertion(+), 1 deletion(-) nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git tag -a v1.0 -m 'version 1.0' nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git tag v1.0 nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) $ git log commit 6a63ff9512ab84ea8fa0ef0fc9737786ac81cbf1 (HEAD -> master, tag: v1.0) Author: naterpotatoers <nate.garza@hotmail.com> Date: Wed Apr 14 16:26:24 2021 -0700 added Nathanael commit 03fa64fb994e8aef90ae17b1845afce76c89fd54 Author: naterpotatoers <nate.garza@hotmail.com> Date: Wed Apr 14 16:25:53 2021 -0700 added from: commit 4c0ffaf6baf9d28a63835fe0c979d0a57d66d72e Author: naterpotatoers <nate.garza@hotmail.com> Date: Wed Apr 14 16:25:24 2021 -0700 added hello nateg@NATES-DESKTOP MINGW64 ~/Documents/Code/gitLabCS174 (master) </nowiki> ((resource:gitLabSessionScreenshotFixed.jpg|Resource Description for gitLabSessionScreenshotFixed.jpg))

-- Apr 14 In-Class Exercise Thread

Patch: Resource Description for my.patch

Screenshot of Patch Resource Description for patch.png

Screenshot of Version Tag Resource Description for gittag.png

Patch: ((resource:my.patch|Resource Description for my.patch)) Screenshot of Patch ((resource:patch.png|Resource Description for patch.png)) Screenshot of Version Tag ((resource:gittag.png|Resource Description for gittag.png))

-- Apr 14 In-Class Exercise Thread

Resource Description for result.PNG

From 940d1dbe7c3e965240acf770813a5b94fddc5d8d Mon Sep 17 00:00:00 2001 From: AnhMinhHoangLe &lt;leanh6998@gmail.com&gt; Date: Wed, 14 Apr 2021 16:28:08 -0700 Subject: [PATCH] second commit


welcome.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/welcome.txt b/welcome.txt index ced8e84..6511ead 100644 --- a/welcome.txt +++ b/welcome.txt @@ -1 +1 @@ -hello from +hello from: Anh Le

2.30.1.windows.1

((resource:result.PNG|Resource Description for result.PNG)) From 940d1dbe7c3e965240acf770813a5b94fddc5d8d Mon Sep 17 00:00:00 2001 From: AnhMinhHoangLe <leanh6998@gmail.com> Date: Wed, 14 Apr 2021 16:28:08 -0700 Subject: [PATCH] second commit --- welcome.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/welcome.txt b/welcome.txt index ced8e84..6511ead 100644 --- a/welcome.txt +++ b/welcome.txt @@ -1 +1 @@ -hello from +hello from: Anh Le -- 2.30.1.windows.1

-- Apr 14 In-Class Exercise Thread

Resource Description for git.PNG

((resource:git.PNG|Resource Description for git.PNG))

-- Apr 14 In-Class Exercise Thread
((resource:my.patch|Resource Description for my.patch)) ((resource:Screen Shot 2021-04-14 at 4.34.58 PM.png|Resource Description for Screen Shot 2021-04-14 at 4.34.58 PM.png))

-- Apr 14 In-Class Exercise Thread

&lt;pre&gt; C:\Users\Brian Tao\Desktop\School\CS 174&gt;git init git-inclassexercise Initialized empty Git repository in C:/Users/Brian Tao/Desktop/School/CS 174/git-inclassexercise/.git/

C:\Users\Brian Tao\Desktop\School\CS 174&gt;cd git-inclassexercise

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git add .

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git commit -m &quot;First commit, added &#039;Hello&#039;&quot; [master (root-commit) cdd1573] First commit, added &#039;Hello&#039; 1 file changed, 1 insertion(+) create mode 100644 welcome.txt

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git add .

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git commit -m &quot;Second commit, added &#039;from&#039;&quot; [master 5372529] Second commit, added &#039;from&#039; 1 file changed, 2 insertions(+), 1 deletion(-)

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git add .

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git commit -m &quot;Third commit, added &#039;Brian&#039;&quot; [master 52d9e19] Third commit, added &#039;Brian&#039; 1 file changed, 2 insertions(+), 1 deletion(-)

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git add .

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git commit -m &quot;Fourth commit, added &#039;Tao&#039;&quot; [master d8cabe8] Fourth commit, added &#039;Tao&#039; 1 file changed, 2 insertions(+), 1 deletion(-)

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git format-patch 5372529 --stdout &gt; my.patch

C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise&gt;git tag -a third-commit-tag 52d9e19 -m &quot;Tag made after third commit&quot; &lt;/pre&gt;

Resource Description for my.patch

<pre> C:\Users\Brian Tao\Desktop\School\CS 174>git init git-inclassexercise Initialized empty Git repository in C:/Users/Brian Tao/Desktop/School/CS 174/git-inclassexercise/.git/ C:\Users\Brian Tao\Desktop\School\CS 174>cd git-inclassexercise C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git add . C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git commit -m "First commit, added 'Hello'" [master (root-commit) cdd1573] First commit, added 'Hello' 1 file changed, 1 insertion(+) create mode 100644 welcome.txt C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git add . C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git commit -m "Second commit, added 'from'" [master 5372529] Second commit, added 'from' 1 file changed, 2 insertions(+), 1 deletion(-) C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git add . C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git commit -m "Third commit, added 'Brian'" [master 52d9e19] Third commit, added 'Brian' 1 file changed, 2 insertions(+), 1 deletion(-) C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git add . C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git commit -m "Fourth commit, added 'Tao'" [master d8cabe8] Fourth commit, added 'Tao' 1 file changed, 2 insertions(+), 1 deletion(-) C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git format-patch 5372529 --stdout > my.patch C:\Users\Brian Tao\Desktop\School\CS 174\git-inclassexercise>git tag -a third-commit-tag 52d9e19 -m "Tag made after third commit" </pre> ((resource:my.patch|Resource Description for my.patch))
[ Next ]
X