ivasileva 2f95ce46ca Обновить 'readme.md' | 1 day ago | |
---|---|---|
.gitignore | 1 day ago | |
readme.md | 1 day ago |
Инициализируем репозиторий командой git init
hint: git init
Initialized empty Git repository in C:/Users/User/SKV/.git/
Выполняем команду git status
C:\Users\User\SKV>git status
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
Создаем .gitignore
Создаем readme.md
Выполняем команду git status
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)
Выполняем команду git add
C:\Users\User\SKV>git add .
Выполняем команду git status
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
Выполняем команду git commit
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': Everything up-to-date
Выполняем команду git log
C:\Users\User\SKV>git log
commit 2a704eeb98
(HEAD -> master, origin/master)
Author: Ирина Васильева upuhathe@mail.ru
Date: Thu Jan 16 14:27:31 2025 +0300
Выполняем команду git remote
C:\Users\User\SKV>git remote add origin https://kolei.ru/ivasileva/SKV.git
Выполняем команду git push
hint: git status
On branch master
nothing to commit, working tree clean
```