Новый текстовый документ.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Инициализируем репозиторий командой git init
  2. C:\Users\Admin\skv_lab>git init
  3. Initialized empty Git repository in C:/Users/Admin/skv_lab/.git/
  4. Создаем .gitignore
  5. Создаем README.MD
  6. Выполняем команду git status
  7. C:\Users\User\skv_lab>git status
  8. On branch master
  9. No commits yet
  10. Untracked files:
  11. (use "git add <file>..." to include in what will be committed)
  12. .gitignore
  13. README.MD
  14. nothing added to commit but untracked files present (use "git add" to track)
  15. Выполняем команду git add
  16. C:\Users\Admin\skv2_lab>git add .
  17. Выполняем команду git status
  18. C:\Users\User\skv_lab>git status
  19. On branch master
  20. No commits yet
  21. Changes to be committed:
  22. (use "git rm --cached <file>..." to unstage)
  23. new file: .gitignore
  24. new file: README.MD
  25. C:\Users\User\skv_lab>git config user.name nmuhlygin
  26. C:\Users\User\skv_lab>git config user.email mulyginnikita156@gmail.com
  27. Выполняем команду git commit
  28. C:\Users\User\skv_lab>git commit -m "йоу"
  29. [master (root-commit) a23d53c] йоу
  30. 2 files changed, 9 insertions(+)
  31. create mode 100644 .gitignore
  32. create mode 100644 README.MD
  33. Выполняем команду git log
  34. C:\Users\User\skv_lab>git log
  35. commit a23d53c86c1940354e32f394f6c28c8730883ffa (HEAD -> master)
  36. Author: nmuhlygin <mulyginnikita156@gmail.com>
  37. Date: Fri Jan 17 08:48:53 2025 +0300
  38. йоу
  39. Выполняем команду git remote
  40. C:\Users\User\skv_lab>git remote add origin https://kolei.ru/nmuhlygin/skv_lab.git
  41. Выполняем команду git push
  42. C:\Users\User\skv_lab>git push origin master
  43. Username for 'https://kolei.ru': nmuhlygin
  44. Password for 'https://nmuhlygin@kolei.ru':
  45. Enumerating objects: 4, done.
  46. Counting objects: 100% (4/4), done.
  47. Delta compression using up to 6 threads
  48. Compressing objects: 100% (3/3), done.
  49. Writing objects: 100% (4/4), 457 bytes | 457.00 KiB/s, done.
  50. Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
  51. To https://kolei.ru/nmuhlygin/skv_lab.git
  52. * [new branch] master -> master