|
@@ -42,5 +42,57 @@
|
|
(use "git rm --cached <file>..." to unstage)
|
|
(use "git rm --cached <file>..." to unstage)
|
|
new file: README.MD
|
|
new file: README.MD
|
|
```
|
|
```
|
|
- 4.
|
|
|
|
|
|
+ 4. Выполняем команду 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
|
|
|
|
+
|
|
|
|
+ мой первый коммит
|
|
|
|
+
|
|
|
|
+ ```
|
|
|
|
+ 6. Выполняем команду 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.
|
|
|
|
+ ```
|
|
|
|
+ 7. Выполняем команду 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
|
|
|
|
+ ```
|
|
|
|
+ 8. Выполняем команду 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
|
|
|
|
+ ```
|
|
|
|
|