瀏覽代碼

Обновить 'readme.md'

dshitkov 1 天之前
父節點
當前提交
b8c6d18fe8
共有 1 個文件被更改,包括 98 次插入0 次删除
  1. 98 0
      readme.md

+ 98 - 0
readme.md

@@ -0,0 +1,98 @@
+1. Инициализируем репозиторий командой `git init`
+
+```
+C:\Users\User\skv>git init
+Initialized empty Git repository in C:/Users/User/skv/.git/
+```
+  
+2. Выполняем команду `git status`
+    
+```
+C:\Users\User\skv>git status
+On branch master
+
+No commits yet
+
+nothing to commit (create/copy files and use "git add" to track)
+```
+    
+3. Создаем `.gitignore`
+
+4. Создаем `README.MD`
+
+5. Выполняем команду `git status`
+
+```
+C:\Users\User\skv>git status
+On branch master
+
+No commits yet
+
+Untracked files:
+  (use "git add <file>..." to include in what will be committed)
+        .gitignore.txt
+        README.MD.txt
+
+nothing added to commit but untracked files present (use "git add" to track)
+```
+    
+6. Выполняем команду `git add`
+
+```
+C:\Users\User\skv>git add .
+```
+    
+7. Выполняем команду `git status`
+
+```
+C:\Users\User\skv>git status
+On branch master
+
+No commits yet
+
+Changes to be committed:
+  (use "git rm --cached <file>..." to unstage)
+        new file:   .gitignore.txt
+        new file:   README.MD.txt
+```
+    
+8. Выполняем команду `git commit`
+
+    ```
+C:\Users\User\skv>git commit -m 'допустим'
+[master (root-commit) 4dcac8f] 'допустим'
+ 2 files changed, 0 insertions(+), 0 deletions(-)
+ create mode 100644 .gitignore.txt
+ create mode 100644 README.MD.txt
+```
+    
+9. Выполняем команду `git log`
+    
+```
+C:\Users\User\skv>git log
+commit 4dcac8f790c4533a48e0a67170562302b770b3b0 (HEAD -> master)
+Author: dshitkov <danilshitkov2005@gmail.com>
+Date:   Fri Jan 17 07:50:22 2025 +0300
+
+    'допустим'
+```
+    
+10. Выполняем команду `git remote`
+    
+```
+C:\Users\User\skv>git remote add origin https://kolei.ru/dshitkov/skv.git
+```
+    
+11. Выполняем команду `git push`
+
+```
+C:\Users\User\skv>git push origin master
+Enumerating objects: 3, done.
+Counting objects: 100% (3/3), done.
+Delta compression using up to 6 threads
+Compressing objects: 100% (2/2), done.
+Writing objects: 100% (3/3), 250 bytes | 250.00 KiB/s, done.
+Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
+To https://kolei.ru/dshitkov/skv.git
+ * [new branch]      master -> master
+```