|
@@ -0,0 +1,101 @@
|
|
|
+ ```
|
|
|
+ C:\Users\User\skv3_lab>git init
|
|
|
+ Initialized empty Git repository in C:/Users/User/skv3_lab/.git/
|
|
|
+
|
|
|
+ C:\Users\User\skv3_lab>git status
|
|
|
+ On branch master
|
|
|
+
|
|
|
+ No commits yet
|
|
|
+
|
|
|
+ nothing to commit (create/copy files and use "git add" to track)
|
|
|
+ ```
|
|
|
+ 1. Создаем файл README.MD
|
|
|
+
|
|
|
+ ```
|
|
|
+ C:\Users\User\skv3_lab>git status
|
|
|
+ On branch master
|
|
|
+
|
|
|
+ No commits yet
|
|
|
+
|
|
|
+ Untracked files:
|
|
|
+ (use "git add <file>..." to include in what will be committed)
|
|
|
+ README.MD
|
|
|
+
|
|
|
+ nothing added to commit but untracked files present (use "git add" to track)
|
|
|
+ ```
|
|
|
+ 2. Выполняем команду git add
|
|
|
+
|
|
|
+ ```
|
|
|
+
|
|
|
+ C:\Users\User\skv3_lab>git add README.MD
|
|
|
+
|
|
|
+ ```
|
|
|
+
|
|
|
+ 3.Выполняем команду git status
|
|
|
+
|
|
|
+ ```
|
|
|
+ C:\Users\User\skv3_lab>git status
|
|
|
+ On branch master
|
|
|
+
|
|
|
+ No commits yet
|
|
|
+
|
|
|
+ Changes to be committed:
|
|
|
+ (use "git rm --cached <file>..." to unstage)
|
|
|
+ new file: README.MD
|
|
|
+ ```
|
|
|
+
|
|
|
+ 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
|
|
|
+ ```
|