|
@@ -0,0 +1,78 @@
|
|
|
|
+# Лабораторная работа СКВ
|
|
|
|
+1)Инициализируем репозиторий командой ```git init```
|
|
|
|
+```
|
|
|
|
+C:\Users\USER_ONE\skvv>git init
|
|
|
|
+Initialized empty Git repository in C:/Users/USER_ONE/skvv/.git/
|
|
|
|
+```
|
|
|
|
+2))Создаю .gitignore
|
|
|
|
+
|
|
|
|
+3)Создаю README.MD
|
|
|
|
+
|
|
|
|
+4)Выполняю команду ```git add . ```
|
|
|
|
+
|
|
|
|
+5)Выполняю команду ```git status```
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+C:\Users\USER_ONE\skvv>git status
|
|
|
|
+On branch master
|
|
|
|
+
|
|
|
|
+No commits yet
|
|
|
|
+
|
|
|
|
+Changes to be committed:
|
|
|
|
+ (use "git rm --cached <file>..." to unstage)
|
|
|
|
+ new file: .gitignore
|
|
|
|
+ new file: readme.md
|
|
|
|
+ ```
|
|
|
|
+
|
|
|
|
+6)Авторизация:
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+C:\Users\USER_ONE\skvv>git config user.name "zhenya"
|
|
|
|
+
|
|
|
|
+C:\Users\USER_ONE\skvv>git config user.email evgen666@bk.ru
|
|
|
|
+
|
|
|
|
+ ```
|
|
|
|
+
|
|
|
|
+7)Выполняю команду ```git commit```
|
|
|
|
+
|
|
|
|
+ ```
|
|
|
|
+ C:\Users\USER_ONE\skvv>git commit -m "x"
|
|
|
|
+[master (root-commit) d7ba933] x
|
|
|
|
+ 2 files changed, 6 insertions(+)
|
|
|
|
+ create mode 100644 .gitignore
|
|
|
|
+ create mode 100644 readme.md
|
|
|
|
+
|
|
|
|
+ ```
|
|
|
|
+
|
|
|
|
+ 8)Выполняю команду ```git log```
|
|
|
|
+
|
|
|
|
+ ```
|
|
|
|
+C:\Users\USER_ONE\skvv>git log
|
|
|
|
+commit d7ba933027fc321c6c2d782f7eb28be9038f0c7d (HEAD -> master, origin/master)
|
|
|
|
+Author: zhenya <evgen666@bk.ru>
|
|
|
|
+Date: Fri Jan 17 21:39:37 2025 +0300
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+9)Добавляю ссылку на реппозиторий
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+C:\Users\USER_ONE\skvv>git remote add origin https://kolei.ru/erybin/skv_lab.git
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+10)Отправляю содержимое в свой реппозиторий
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+C:\Users\USER_ONE\skvv>git push -u origin master
|
|
|
|
+Enumerating objects: 4, done.
|
|
|
|
+Counting objects: 100% (4/4), done.
|
|
|
|
+Delta compression using up to 16 threads
|
|
|
|
+Compressing objects: 100% (2/2), done.
|
|
|
|
+Writing objects: 100% (4/4), 281 bytes | 281.00 KiB/s, done.
|
|
|
|
+Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
|
|
|
|
+To https://kolei.ru/erybin/skv_lab.git
|
|
|
|
+ * [new branch] master -> master
|
|
|
|
+branch 'master' set up to track 'origin/master'.
|
|
|
|
+
|
|
|
|
+```
|