|
@@ -1,16 +1,19 @@
|
|
|
-C:\Users\User>cd skv
|
|
|
|
|
|
+1) Инициализируем репозиторий командой 'git init'
|
|
|
+'''
|
|
|
C:\Users\User\skv>git init
|
|
|
Reinitialized existing Git repository in C:/Users/User/skv/.git/
|
|
|
-
|
|
|
+'''
|
|
|
+2) Выполняем команду `git status`
|
|
|
+'''
|
|
|
C:\Users\User\skv>git status
|
|
|
On branch master
|
|
|
nothing to commit, working tree clean
|
|
|
+'''
|
|
|
+3) Создаем `README.MD`
|
|
|
|
|
|
-C:\Users\User\skv>readme.md
|
|
|
-"readme.md" не является внутренней или внешней
|
|
|
-командой, исполняемой программой или пакетным файлом.
|
|
|
-
|
|
|
+4) Выполняем команду `git status`
|
|
|
+'''
|
|
|
C:\Users\User\skv>git status
|
|
|
On branch master
|
|
|
Changes not staged for commit:
|
|
@@ -23,35 +26,38 @@ Untracked files:
|
|
|
README.MD
|
|
|
|
|
|
no changes added to commit (use "git add" and/or "git commit -a")
|
|
|
-
|
|
|
+'''
|
|
|
+5) Выполняем команду `git add`
|
|
|
+'''
|
|
|
C:\Users\User\skv>git add README.MD
|
|
|
-
|
|
|
+'''
|
|
|
+6) Выполняем команду `git status`
|
|
|
+'''
|
|
|
C:\Users\User\skv>git status
|
|
|
On branch master
|
|
|
Changes to be committed:
|
|
|
(use "git restore --staged <file>..." to unstage)
|
|
|
new file: README.MD
|
|
|
-
|
|
|
Changes not staged for commit:
|
|
|
(use "git add/rm <file>..." to update what will be committed)
|
|
|
(use "git restore <file>..." to discard changes in working directory)
|
|
|
deleted: .gitignore
|
|
|
-
|
|
|
-
|
|
|
+'''
|
|
|
+7) Выполняем команду `git commit`
|
|
|
+'''
|
|
|
C:\Users\User\skv>git commit -m 52
|
|
|
[master 07ba612] 52
|
|
|
1 file changed, 0 insertions(+), 0 deletions(-)
|
|
|
create mode 100644 README.MD
|
|
|
-
|
|
|
C:\Users\User\skv>git commit -m ww
|
|
|
On branch master
|
|
|
Changes not staged for commit:
|
|
|
(use "git add <file>..." to update what will be committed)
|
|
|
(use "git restore <file>..." to discard changes in working directory)
|
|
|
modified: .gitignore
|
|
|
-
|
|
|
-no changes added to commit (use "git add" and/or "git commit -a")
|
|
|
-
|
|
|
+'''
|
|
|
+8) Выполняем команду `git log`
|
|
|
+'''
|
|
|
C:\Users\User\skv>git log
|
|
|
commit 07ba6120f427beeeb5a161db77c7a1fb0defa54e (HEAD -> master)
|
|
|
Author: ikostrov <siegell22222@gmail.com>
|
|
@@ -64,12 +70,26 @@ Author: ikostrov <siegell22222@gmail.com>
|
|
|
Date: Thu Jan 16 13:02:14 2025 +0300
|
|
|
|
|
|
пятдесятдва
|
|
|
-
|
|
|
+'''
|
|
|
+9) Выполняем команду `git remote`
|
|
|
+'''
|
|
|
C:\Users\User\skv>git remote add pb https://kolei.ru/ikostrov/skv.git
|
|
|
-
|
|
|
-C:\Users\User\skv>git fetch [имя удал. сервера]
|
|
|
-fatal: invalid refspec 'удал.'
|
|
|
-
|
|
|
+'''
|
|
|
+10) Выполняем команду `git fetch`
|
|
|
+'''
|
|
|
+ C:\Users\User\skv3_lab>git fetch origin
|
|
|
+ Username for 'https://kolei.ru': ikostrov
|
|
|
+ Password for 'https://ikostrov@kolei.ru':
|
|
|
+ remote: Enumerating objects: 23, done.
|
|
|
+ remote: Counting objects: 100% (26/26), done.
|
|
|
+ remote: Compressing objects: 100% (16/16), done.
|
|
|
+ remote: Total 24 (delta 7), reused 0 (delta 0), pack-reused 0
|
|
|
+ Unpacking objects: 100% (24/24), 3.30 KiB | 35.00 KiB/s, done.
|
|
|
+ From https://kolei.ru/ikostrov/skv3_lab
|
|
|
+ 33e8986..827845c master -> origin/master
|
|
|
+ '''
|
|
|
+11) Выполняем команду 'git push'
|
|
|
+'''
|
|
|
C:\Users\User\skv>git push origin master
|
|
|
Username for 'https://kolei.ru': ikostrov
|
|
|
Password for 'https://ikostrov@kolei.ru':
|
|
@@ -81,3 +101,4 @@ Writing objects: 100% (6/6), 650 bytes | 650.00 KiB/s, done.
|
|
|
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
|
|
|
To https://kolei.ru/ikostrov/skv.git
|
|
|
* [new branch] master -> master
|
|
|
+'''
|