dshitkov edcc243558 Обновить 'readme.md' | пре 1 дан | |
---|---|---|
.gitignore.txt | пре 1 дан | |
readme.md | пре 1 дан |
Инициализируем репозиторий командой git init
C:\Users\User\skv>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
README.MD.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: README.MD.txt
Выполняем команду git commit
C:\Users\User\skv>git commit -m 'допустим'
[master (root-commit) 4dcac8f] 'допустим'
2 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 .gitignore.txt
create mode 100644 README.MD.txt
Выполняем команду git log
C:\Users\User\skv>git log
commit 4dcac8f790c4533a48e0a67170562302b770b3b0 (HEAD -> master)
Author: dshitkov <danilshitkov2005@gmail.com>
Date: Fri Jan 17 07:50:22 2025 +0300
'допустим'
Выполняем команду git remote
C:\Users\User\skv>git remote add origin https://kolei.ru/dshitkov/skv.git
Выполняем команду git push
C:\Users\User\skv>git push origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 6 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 250 bytes | 250.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://kolei.ru/dshitkov/skv.git
* [new branch] master -> master