|
@@ -10,7 +10,7 @@
|
|
nothing to commit (create/copy files and use "git add" to track)
|
|
nothing to commit (create/copy files and use "git add" to track)
|
|
```
|
|
```
|
|
|
|
|
|
-1. Создаем файл README.MD
|
|
|
|
|
|
+ 1. Создаем файл README.MD
|
|
|
|
|
|
```
|
|
```
|
|
C:\Users\User\skv3_lab>git status
|
|
C:\Users\User\skv3_lab>git status
|
|
@@ -23,15 +23,14 @@
|
|
README.MD
|
|
README.MD
|
|
|
|
|
|
nothing added to commit but untracked files present (use "git add" to track)
|
|
nothing added to commit but untracked files present (use "git add" to track)
|
|
- ```
|
|
|
|
|
|
|
|
-1. Выполняем команду git add
|
|
|
|
|
|
+ ```
|
|
|
|
+ 2. Выполняем команду git add
|
|
|
|
|
|
```
|
|
```
|
|
C:\Users\User\skv3_lab>git add README.MD
|
|
C:\Users\User\skv3_lab>git add README.MD
|
|
```
|
|
```
|
|
-
|
|
|
|
-1.Выполняем команду git status
|
|
|
|
|
|
+ 3.Выполняем команду git status
|
|
|
|
|
|
```
|
|
```
|
|
C:\Users\User\skv3_lab>git status
|
|
C:\Users\User\skv3_lab>git status
|
|
@@ -43,59 +42,5 @@
|
|
(use "git rm --cached <file>..." to unstage)
|
|
(use "git rm --cached <file>..." to unstage)
|
|
new file: README.MD
|
|
new file: README.MD
|
|
```
|
|
```
|
|
|
|
+ 4.
|
|
|
|
|
|
-1.Выполняем команду git commit
|
|
|
|
-
|
|
|
|
- ```
|
|
|
|
- C:\Users\User\skv3_lab>git commit -m "мой первый коммит"
|
|
|
|
- [master (root-commit) 33e4286] мой первый коммит
|
|
|
|
- 1 file changed, 0 insertions(+), 0 deletions(-)
|
|
|
|
- create mode 100644 README.MD
|
|
|
|
- ```
|
|
|
|
-
|
|
|
|
-5. Выполняем команду git log
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- ```
|
|
|
|
- C:\Users\User\skv3_lab>git log
|
|
|
|
- commit 33e42864645f668929951b996d727c4c2ef33057 (HEAD -> master)
|
|
|
|
- Author: aleukhin <uriq3@mail.ru>
|
|
|
|
- Date: Thu Jan 16 13:51:02 2025 +0300
|
|
|
|
-
|
|
|
|
- мой первый коммит
|
|
|
|
-
|
|
|
|
- ```
|
|
|
|
-1. Выполняем команду git remote
|
|
|
|
-
|
|
|
|
- ```
|
|
|
|
- C:\Users\User\skv3_lab>git remote add origin https://kolei.ru/mvavilov/skv3_lab.git
|
|
|
|
-
|
|
|
|
- C:\Users\User\skv3_lab>git fetch skv3_lab
|
|
|
|
- fatal: 'skv3_lab' does not appear to be a git repository
|
|
|
|
- fatal: Could not read from remote repository.
|
|
|
|
-
|
|
|
|
- Please make sure you have the correct access rights
|
|
|
|
- and the repository exists.
|
|
|
|
- ```
|
|
|
|
-
|
|
|
|
-1. Выполняем команду git fetch
|
|
|
|
-
|
|
|
|
- ```
|
|
|
|
- C:\Users\User\skv3_lab>git fetch https://kolei.ru/mvavilov/skv3_lab.git
|
|
|
|
- Username for 'https://kolei.ru': mvavilov
|
|
|
|
- Password for 'https://mvavilov@kolei.ru':
|
|
|
|
- fatal: couldn't find remote ref HEAD
|
|
|
|
- ```
|
|
|
|
-1. Выполняем команду git push
|
|
|
|
-
|
|
|
|
- ```
|
|
|
|
- C:\Users\User\skv3_lab>git push origin master
|
|
|
|
- Username for 'https://kolei.ru': mvavilov
|
|
|
|
- Password for 'https://mvavilov@kolei.ru':
|
|
|
|
- Enumerating objects: 3, done.
|
|
|
|
- Counting objects: 100% (3/3), done.
|
|
|
|
- Writing objects: 100% (3/3), 233 bytes | 233.00 KiB/s, done.
|
|
|
|
- Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
|
|
|
|
- To https://kolei.ru/mvavilov/skv3_lab.git
|
|
|
|
- * [new branch] master -> master
|
|
|
|
- ```
|
|
|