Please post your solutions to the Apr 14 In-Class Exercise to this thread.
Best,
Chris
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 @@
2.24.1 (Apple Git-126)
<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>
(Edited: 2021-04-14)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(-)
2.30.1.windows.1
<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>