ivasileva f757570781 Обновить 'readme.md' | 14 годин тому | |
---|---|---|
.gitignore | 1 день тому | |
readme.md | 14 годин тому |
Инициализирую репозиторий командой 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
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(-)
create mode 100644 .gitignore.txt
create mode 100644 readme.md.txt
Выполняю команду git log
C:\Users\User\SKV>git log
commit 2a704eeb98e9548d8e1a9816c94207c152ebdc15 (HEAD -> master, origin/master)
Author: Ирина Васильева <upuhathe@mail.ru>
Date: Thu Jan 16 14:27:31 2025 +0300
chv2
Выполняю команду git remote
C:\Users\User\SKV>git remote add origin https://kolei.ru/ivasileva/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), 222 bytes | 111.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Username for 'https://kolei.ru': ivasileva
Password for 'https://ivasileva@kolei.ru':
To https://kolei.ru/ivasileva/SKV.git
* [new branch] master -> master