mvavilov 21097901cb Загрузить файлы '' | пре 1 дан | |
---|---|---|
.gitignore | пре 1 дан | |
README.MD | пре 2 дана |
Инициализируем репозиторий командой git init
C:\Users\User\skv3_lab>git init
Initialized empty Git repository in C:/Users/User/skv3_lab/.git/
Выполняем команду git status
C:\Users\User\skv3_lab>git status
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
Создаем README.MD
Выполняем команду git status
C:\Users\User\skv3_lab>git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
README.MD
nothing added to commit but untracked files present (use "git add" to track)
Выполняем команду git add
C:\Users\User\skv3_lab>git add README.MD
Выполняем команду git status
C:\Users\User\skv3_lab>git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: README.MD
Выполняем команду git commit
C:\Users\User\skv3_lab>git commit -m "мой первый коммит"
[master (root-commit) 33e4286] мой первый коммит
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README.MD
Выполняем команду git log
C:\Users\User\skv3_lab>git log
commit 33e42864645f668929951b996d727c4c2ef33057 (HEAD -> master)
Author: aleukhin <uriq3@mail.ru>
Date: Thu Jan 16 13:51:02 2025 +0300
мой первый коммит
Выполняем команду git remote
C:\Users\User\skv3_lab>git remote add origin https://kolei.ru/mvavilov/skv3_lab.git
Выполняем команду git fetch
C:\Users\User\skv3_lab>git fetch origin
Username for 'https://kolei.ru': mvavilov
Password for 'https://mvavilov@kolei.ru':
remote: Enumerating objects: 26, 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/mvavilov/skv3_lab
33e4286..828848c master -> origin/master
Выполняем команду git push
C:\Users\User\skv3_lab>git push origin master
Username for 'https://kolei.ru': mvavilov
Password for 'https://mvavilov@kolei.ru':
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 233 bytes | 233.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://kolei.ru/mvavilov/skv3_lab.git
* [new branch] master -> master