/l3/users/slm/2018-12-minsk-aws/student07.BigClassRoom/user :1 :2 |
|
$sudo git pull
remote: Enumerating objects: 5, done. remote: Counting objects: 100% (5/5), done. remote: Compressing objects: 100% (3/3), done. remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), done. From https://github.com/yurykalinin/aws 848ae3b..5a22630 master -> origin/master Updating 848ae3b..5a22630 Fast-forward hello.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) |
$git diff
|
$sudo git diff hello.md
|
$ls -l
total 48 drwxr-xr-x 3 user user 4096 Dec 17 16:27 aws -rw-r--r-- 1 root root 53 Dec 17 16:27 hello.md -rw-r--r-- 1 root root 35149 Dec 17 16:02 LICENSE -rw-r--r-- 1 root root 32 Dec 17 16:02 README.md |
$cat hello.md
##Hello **Hellow world** ##Goodbuy **Goodbuy world** |
$nano hello.md
|
$# Hello
|
$sudo nano hello.md
|
$# Hello
|
$# Hello
|
$# Introduction
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 Untracked files: (use "git add <file>..." to include in what will be committed) aws/ 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 534273e..434c27e 100644 --- a/hello.md +++ b/hello.md @@ -1,4 +1,7 @@ -##Hello +## Introduction +Introduction to hello world + +## Hello **Hellow world** -##Goodbuy -**Goodbuy world** +## Goodbye +**Goodbye world** Stage this hunk [y,n,q,a,d,/,s,e,?]? ^Z [1]+ Stopped git add -p |
$sudo nano hello.md
|
$# Introduction
|
$sudo nano hello.md
![]() |
$sudo nano hello.md
|
$# Introduction
|
$cat hello.md
## Introduction Introduction to hello world ## Hello **Hello world** ## Goodbye **Goodbye world** |
$git add -p
diff --git a/hello.md b/hello.md index 534273e..fbdae3d 100644 --- a/hello.md +++ b/hello.md @@ -1,4 +1,7 @@ -##Hello -**Hellow world** -##Goodbuy -**Goodbuy world** +## Introduction ... -**Hellow world** -##Goodbuy -**Goodbuy world** +## Introduction +Introduction to hello world + +## Hello +**Hello world** +## Goodbye +**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 Untracked files: (use "git add <file>..." to include in what will be committed) aws/ 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 534273e..fbdae3d 100644 --- a/hello.md +++ b/hello.md @@ -1,4 +1,7 @@ -##Hello -**Hellow world** -##Goodbuy -**Goodbuy world** +## Introduction ... -**Hellow world** -##Goodbuy -**Goodbuy world** +## Introduction +Introduction to hello world + +## Hello +**Hello world** +## Goodbye +**Goodbye world** |
$sudo git add -p
diff --git a/hello.md b/hello.md index 534273e..fbdae3d 100644 --- a/hello.md +++ b/hello.md @@ -1,4 +1,7 @@ -##Hello -**Hellow world** -##Goodbuy -**Goodbuy world** +## Introduction +Introduction to hello world + +## Hello +**Hello world** +## Goodbye +**Goodbye world** Stage this hunk [y,n,q,a,d,/,e,?]? y |
$git status
On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: hello.md Untracked files: (use "git add <file>..." to include in what will be committed) aws/ |
$sudo git status
On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: hello.md Untracked files: (use "git add <file>..." to include in what will be committed) aws/ |
$ls -l
total 48 drwxr-xr-x 3 user user 4096 Dec 17 16:27 aws -rw-r--r-- 1 root root 99 Dec 17 16:49 hello.md -rw-r--r-- 1 root root 35149 Dec 17 16:02 LICENSE -rw-r--r-- 1 root root 32 Dec 17 16:02 README.md |
$rm /aws
![]() rm: cannot remove '/aws': Is a directory |
$sudo rm /aws/aws/
![]() rm: cannot remove '/aws/aws/': Is a directory |
$sudo rmdir /aws/aws/
![]() rmdir: failed to remove '/aws/aws/': Directory not empty |
$cd aws/
|
$ls -l
total 44 -rw-r--r-- 1 user user 53 Dec 17 16:27 hello.md -rw-r--r-- 1 user user 35149 Dec 17 16:27 LICENSE -rw-r--r-- 1 user user 32 Dec 17 16:27 README.md |
$cat hello.md
##Hello **Hellow world** ##Goodbuy **Goodbuy world** |
$sudo nano hello.md
|
$#introduction
##introduction Introduction to hello world ## Hello **Hello world** ## Goodbuy **Goodbuy world** |
$git sta
![]() git: 'sta' is not a git command. See 'git --help'. Did you mean one of these? status stage stash |
$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 534273e..854a5e2 100644 --- a/hello.md +++ b/hello.md @@ -1,4 +1,7 @@ -##Hello -**Hellow world** -##Goodbuy +##introduction +Introduction to hello world + +## Hello +**Hello world** +## Goodbuy **Goodbuy world** Stage this hunk [y,n,q,a,d,/,e,?]? ^C |
|