From 929984b24edd0bc22c7d7bfe7e284b5083f9935f Mon Sep 17 00:00:00 2001 From: max Date: Tue, 26 Apr 2022 19:18:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D1=8F'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/%D0%9F%D0%B5%D1%80%D0%B5%D0%BD%D0%BE%D1%81-%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F.md b/%D0%9F%D0%B5%D1%80%D0%B5%D0%BD%D0%BE%D1%81-%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F.md index 95361ad..ec3e775 100644 --- a/%D0%9F%D0%B5%D1%80%D0%B5%D0%BD%D0%BE%D1%81-%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F.md +++ b/%D0%9F%D0%B5%D1%80%D0%B5%D0%BD%D0%BE%D1%81-%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F.md @@ -1,7 +1,26 @@ +### Перенос репозитория ``` git clone --bare https://hostname/exampleuser/old-repository.git cd old-repository.git git lfs fetch --all git push --mirror https://hostname/exampleuser/new-repository.git git lfs push --all https://github.com/exampleuser/new-repository.git +``` + +### Создать новый репозиторий из командной строки +``` +touch README.md +git init +git checkout -b main +git add README.md +git commit -m "first commit" +git remote add origin https://gitbit.ru/(user|company)/repository.git +git push -u origin main +``` + + +### Push существующего репозитория из командной строки +``` +git remote add origin https://gitbit.ru/(user|company)/repository.git +git push -u origin main ``` \ No newline at end of file