kynan@NepPC MINGW64 ~
$ mkdir "inclass_10_28"
kynan@NepPC MINGW64 ~
$ cd "inclass_10_28"
kynan@NepPC MINGW64 ~/inclass_10_28
$ git init
Initialized empty Git repository in C:/Users/kynan/inclass_10_28/.git/
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git add .
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git add hello.txt
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "initial commit"
[master (root-commit) 29cee0a] initial commit
1 file changed, 1 insertion(+)
create mode 100644 hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My name > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "2nd commit"
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
[master 05ee667] 2nd commit
1 file changed, 1 insertion(+), 1 deletion(-)
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git format-patch 05ee667 --stdout >my.patch
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check mu.patch
error: can't open patch 'mu.patch': No such file or directory
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My name is: > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "3rd commit"
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
[master b460182] 3rd commit
1 file changed, 1 insertion(+), 1 deletion(-)
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ log
bash: log: command not found
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit b46018202091c9ce9221c31ec8373f577a9ba03e (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:02:27 2020 -0700
3rd commit
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git tag -a v3 b460182 -m "version3"
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My name is: Kynan > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "4th commit"
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
[master 94e1775] 4th commit
1 file changed, 1 insertion(+), 1 deletion(-)
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 94e1775ad435d993f2659a99e4b1d03fd69f40a4 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:04:26 2020 -0700
4th commit
commit b46018202091c9ce9221c31ec8373f577a9ba03e (tag: v3)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:02:27 2020 -0700
3rd commit
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ Get-Content .\fix.patch | Set-Content -Encoding utf8 fix_utf8.patch
bash: Get-Content: command not found
bash: Set-Content: command not found
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 94e1775ad435d993f2659a99e4b1d03fd69f40a4 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:04:26 2020 -0700
4th commit
commit b46018202091c9ce9221c31ec8373f577a9ba03e (tag: v3)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:02:27 2020 -0700
3rd commit
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git format-patch --no--color 05ee667 --stdout >my.patch
fatal: unrecognized argument: --no--color
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git format-patch --no-color 05ee667 --stdout > my.patch
kynan@NepPC MINGW64 ~
$ mkdir "inclass_10_28"
kynan@NepPC MINGW64 ~
$ cd "inclass_10_28"
kynan@NepPC MINGW64 ~/inclass_10_28
$ git init
Initialized empty Git repository in C:/Users/kynan/inclass_10_28/.git/
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git add .
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git add hello.txt
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "initial commit"
[master (root-commit) 29cee0a] initial commit
1 file changed, 1 insertion(+)
create mode 100644 hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My name > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "2nd commit"
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
[master 05ee667] 2nd commit
1 file changed, 1 insertion(+), 1 deletion(-)
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git format-patch 05ee667 --stdout >my.patch
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check mu.patch
error: can't open patch 'mu.patch': No such file or directory
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My name is: > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "3rd commit"
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
[master b460182] 3rd commit
1 file changed, 1 insertion(+), 1 deletion(-)
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ log
bash: log: command not found
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit b46018202091c9ce9221c31ec8373f577a9ba03e (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:02:27 2020 -0700
3rd commit
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git tag -a v3 b460182 -m "version3"
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ echo My name is: Kynan > hello.txt
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git commit -a -m "4th commit"
warning: LF will be replaced by CRLF in hello.txt.
The file will have its original line endings in your working directory
[master 94e1775] 4th commit
1 file changed, 1 insertion(+), 1 deletion(-)
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 94e1775ad435d993f2659a99e4b1d03fd69f40a4 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:04:26 2020 -0700
4th commit
commit b46018202091c9ce9221c31ec8373f577a9ba03e (tag: v3)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:02:27 2020 -0700
3rd commit
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ Get-Content .\fix.patch | Set-Content -Encoding utf8 fix_utf8.patch
bash: Get-Content: command not found
bash: Set-Content: command not found
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git apply --check my.patch
error: unrecognized input
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git log
commit 94e1775ad435d993f2659a99e4b1d03fd69f40a4 (HEAD -> master)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:04:26 2020 -0700
4th commit
commit b46018202091c9ce9221c31ec8373f577a9ba03e (tag: v3)
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 16:02:27 2020 -0700
3rd commit
commit 05ee667eaf9926d83d845e35706e49d6fe84ffd7
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:59:34 2020 -0700
2nd commit
commit 29cee0a4dd4183c08fd986b32439cb6ba176ec72
Author: Kynan Hui <kynan.hui@sjsu.edu>
Date: Wed Oct 28 15:57:19 2020 -0700
initial commit
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git format-patch --no--color 05ee667 --stdout >my.patch
fatal: unrecognized argument: --no--color
kynan@NepPC MINGW64 ~/inclass_10_28 (master)
$ git format-patch --no-color 05ee667 --stdout > my.patch
((resource:my.patch|Resource Description for my.patch))