| /l3/users/slm/2018-12-minsk-aws/instructor.BigClassRoom/user :1 :2 |
|
|
$vim hello.md
|
|
$git diff
diff --git a/hello.md b/hello.md index 98ad2f9..dd65a6a 100644 --- a/hello.md +++ b/hello.md @@ -1,7 +1,11 @@ +## Introduction + +Introduction to the hello/goodbye topic. + ## Hello Hello **world** ## Goodbye -Goodbye world +Goodbye **world** |
|
$git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: hello.md
no changes added to commit (use "git add" and/or "git commit -a")
|
|
$git add -p
diff --git a/hello.md b/hello.md index 98ad2f9..dd65a6a 100644 --- a/hello.md +++ b/hello.md @@ -1,7 +1,11 @@ +## Introduction + +Introduction to the hello/goodbye topic. + ## Hello ... Hello **world** ## Goodbye Stage this hunk [y,n,q,a,d,/,j,J,g,e,?]? n @@ -1,7 +5,7 @@ ## Hello Hello **world** ## Goodbye -Goodbye world +Goodbye **world** Stage this hunk [y,n,q,a,d,/,K,g,e,?]? y |
|
$git commit -m 'goodbye world formatting (fixes #1)'
[master 33d7de2] goodbye world formatting (fixes #1) 1 file changed, 1 insertion(+), 1 deletion(-) |
|
$git commit -m 'added introduction'
[master 2881368] added introduction 1 file changed, 4 insertions(+) |
|
$git push
Username for 'https://github.com': sl-2018-12 Password for 'https://sl-2018-12@github.com': Counting objects: 6, done. Delta compression using up to 4 threads. Compressing objects: 100% (6/6), done. Writing objects: 100% (6 |