Инструменты пользователя

Инструменты сайта


git:gitlab

Git global setup

git config --global user.name "serg anchikin"
git config --global user.email "s.anchikin@citynature.ru"

Create a new repository

git clone git@gitlab.citynature.ru:s.anchikin/proxy.checker.git
cd proxy.checker
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main

Push an existing folder

cd existing_folder
git init --initial-branch=main
git remote add origin git@gitlab.citynature.ru:s.anchikin/proxy.checker.git
git add .
git commit -m "Initial commit"
git push -u origin main

Push an existing Git repository

cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitlab.citynature.ru:s.anchikin/proxy.checker.git
git push -u origin --all
git push -u origin --tags
git/gitlab.txt · Последние изменения: 2023/01/12 12:18 (внешнее изменение)