12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- Инициализируем репозиторий командой git init
- C:\Users\Admin\skv_lab>git init
- Initialized empty Git repository in C:/Users/Admin/skv_lab/.git/
- Создаем .gitignore
- Создаем README.MD
- Выполняем команду git status
- C:\Users\User\skv_lab>git status
- On branch master
- No commits yet
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- .gitignore
- README.MD
- nothing added to commit but untracked files present (use "git add" to track)
- Выполняем команду git add
- C:\Users\Admin\skv2_lab>git add .
- Выполняем команду git status
- C:\Users\User\skv_lab>git status
- On branch master
- No commits yet
- Changes to be committed:
- (use "git rm --cached <file>..." to unstage)
- new file: .gitignore
- new file: README.MD
- C:\Users\User\skv_lab>git config user.name nmuhlygin
- C:\Users\User\skv_lab>git config user.email mulyginnikita156@gmail.com
- Выполняем команду git commit
- C:\Users\User\skv_lab>git commit -m "йоу"
- [master (root-commit) a23d53c] йоу
- 2 files changed, 9 insertions(+)
- create mode 100644 .gitignore
- create mode 100644 README.MD
- Выполняем команду git log
- C:\Users\User\skv_lab>git log
- commit a23d53c86c1940354e32f394f6c28c8730883ffa (HEAD -> master)
- Author: nmuhlygin <mulyginnikita156@gmail.com>
- Date: Fri Jan 17 08:48:53 2025 +0300
- йоу
- Выполняем команду git remote
- C:\Users\User\skv_lab>git remote add origin https://kolei.ru/nmuhlygin/skv_lab.git
- Выполняем команду git push
- C:\Users\User\skv_lab>git push origin master
- Username for 'https://kolei.ru': nmuhlygin
- Password for 'https://nmuhlygin@kolei.ru':
- Enumerating objects: 4, done.
- Counting objects: 100% (4/4), done.
- Delta compression using up to 6 threads
- Compressing objects: 100% (3/3), done.
- Writing objects: 100% (4/4), 457 bytes | 457.00 KiB/s, done.
- Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
- To https://kolei.ru/nmuhlygin/skv_lab.git
- * [new branch] master -> master
|