Create a new repository#
git clone git@gitlab.com:BasilSkrnk/new-website-project.git
cd website-basil-skrnk
git switch --create main
touch README.md
git add README.md
git commit -m "add README"
git push --set-upstream origin main
Push an existing folder#
cd existing_folder
git init --initial-branch=main
git remote add origin git@gitlab.com:BasilSkrnk/new-website-project.git
git add .
git commit -m "Initial commit"
git push --set-upstream origin main
Push an existing Git repository#
cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitlab.com:BasilSkrnk/new-website-project.git
git push --set-upstream origin --all
git push --set-upstream origin --tags