Last active 8 months ago

drholy revised this gist 8 months ago. Go to revision

1 file changed, 2 insertions, 2 deletions

git_command.md

@@ -1,4 +1,4 @@
1 - # Создать новый репозиторий из командной строки
1 + ## Создать новый репозиторий из командной строки
2 2
3 3 ``` bash
4 4 touch README.md
@@ -10,7 +10,7 @@ git remote add origin git@git.home:drholy/test.git
10 10 git push -u origin main
11 11 ```
12 12
13 - # Отправка существующего репозитория из командной строки
13 + ## Отправка существующего репозитория из командной строки
14 14
15 15 ``` bash
16 16 git remote add origin git@git.home:drholy/test.git

drholy revised this gist 8 months ago. Go to revision

1 file changed, 18 insertions

git_command.md(file created)

@@ -0,0 +1,18 @@
1 + # Создать новый репозиторий из командной строки
2 +
3 + ``` bash
4 + touch README.md
5 + git init
6 + git checkout -b main
7 + git add README.md
8 + git commit -m "first commit"
9 + git remote add origin git@git.home:drholy/test.git
10 + git push -u origin main
11 + ```
12 +
13 + # Отправка существующего репозитория из командной строки
14 +
15 + ``` bash
16 + git remote add origin git@git.home:drholy/test.git
17 + git push -u origin main
18 + ```
Newer Older