ikostrov 98c2191d20 Обновить 'README.MD' | 2 days ago | |
---|---|---|
.gitignore | 2 days ago | |
README.MD | 2 days ago |
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
4) Выполняем команду git status
'''
C:\Users\User\skv>git status
On branch master
Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
deleted: .gitignore
Untracked files: (use "git add ..." to include in what will be committed)
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 ..." to unstage)
new file: README.MD
Changes not staged for commit: (use "git add/rm ..." to update what will be committed) (use "git restore ..." 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 ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: .gitignore
'''
8) Выполняем команду git log
'''
C:\Users\User\skv>git log
commit 07ba6120f4
(HEAD -> master)
Author: ikostrov siegell22222@gmail.com
Date: Thu Jan 16 14:21:28 2025 +0300
52
commit ad76dba93f
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
'''
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': Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 6 threads Compressing objects: 100% (4/4), done. 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