|
@@ -12,29 +12,52 @@ Initialized empty Git repository in C:/Users/User/SKV/.git/
|
|
|
```
|
|
|
C:\Users\User\SKV>git status
|
|
|
On branch master
|
|
|
-nothing to commit, working tree clean
|
|
|
-hint: git commit -m chv2
|
|
|
-[master 2a704ee] chv2
|
|
|
-1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
+
|
|
|
+No commits yet
|
|
|
+
|
|
|
+nothing to commit (create/copy files and use "git add" to track)
|
|
|
+
|
|
|
```
|
|
|
3. Создаем `.gitignore`
|
|
|
|
|
|
4. Создаем `readme.md`
|
|
|
|
|
|
5. Выполняем команду `git status`
|
|
|
-C:\Users\User\SKV>
|
|
|
-hint: git log
|
|
|
+```
|
|
|
+C:\Users\User\SKV>git status
|
|
|
+On branch master
|
|
|
+
|
|
|
+No commits yet
|
|
|
+
|
|
|
+Untracked files:
|
|
|
+ (use "git add <file>..." to include in what will be committed)
|
|
|
+ .gitignore.txt
|
|
|
+ read.me.txt
|
|
|
+
|
|
|
+nothing added to commit but untracked files present (use "git add" to track)
|
|
|
+```
|
|
|
6. Выполняем команду `git add`
|
|
|
```
|
|
|
-C:\Users\User\SKV>git add
|
|
|
+C:\Users\User\SKV>git add .
|
|
|
```
|
|
|
7. Выполняем команду `git status`
|
|
|
-C:\Users\User\SKV>
|
|
|
-hint: git fetch
|
|
|
-Username for 'https://kolei.ru': ivasileva
|
|
|
-Password for 'https://ivasileva@kolei.ru':
|
|
|
+```
|
|
|
+C:\Users\User\SKV>git status
|
|
|
+On branch master
|
|
|
+
|
|
|
+No commits yet
|
|
|
+
|
|
|
+Changes to be committed:
|
|
|
+ (use "git rm --cached <file>..." to unstage)
|
|
|
+ new file: .gitignore.txt
|
|
|
+ new file: read.me.txt
|
|
|
+```
|
|
|
8. Выполняем команду `git commit`
|
|
|
-C:\Users\User\SKV>
|
|
|
+```
|
|
|
+C:\Users\User\SKV>commit -m "chv2"
|
|
|
+[master (root-commit) 2a704ee] chv2
|
|
|
+2 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
+```
|
|
|
hint: git push origin master
|
|
|
Username for 'https://kolei.ru': ivasilev
|
|
|
Password for 'https://ivasileva@kolei.ru':
|