Browse Source

Обновить 'README.MD'

mvavilov 2 days ago
parent
commit
3f9019c7eb
1 changed files with 85 additions and 1 deletions
  1. 85 1
      README.MD

+ 85 - 1
README.MD

@@ -13,4 +13,88 @@
     No commits yet
 
     nothing to commit (create/copy files and use "git add" to track)
-    ```
+    ```
+1. Создаем README.MD
+
+1. Выполняем команду git status
+
+    ```
+    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)
+    ```
+1. Выполняем команду git add
+
+    ```
+    C:\Users\User\skv3_lab>git add README.MD
+    ```
+1. Выполняем команду 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
+    ```
+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
+    ```
+1. Выполняем команду 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
+    ```
+1. Выполняем команду git fetch
+
+    ```
+    C:\Users\User\skv3_lab>git fetch origin
+    Username for 'https://kolei.ru': mvavilov
+    Password for 'https://mvavilov@kolei.ru':
+    remote: Enumerating objects: 26, 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/mvavilov/skv3_lab
+    33e4286..828848c  master     -> origin/master
+    ```
+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
+    ```
+