I have created one project. I want to store my project in Gitlab. How to create a local repository and remote repository in Gitlab using command line? I am looking for creating both local repository and remote repository creation.
I got the solution. Steps to create Local repository and remote repository using Gitlab.
git init
(Local repository created)git add .
git commit -m "message"
- Git push using SSH(Remote repository created):
git push --set-upstream git@gitlab.example.com:your-username/nonexistent-project.git master
Git push using HTTP:
git push --set-upstream https://gitlab.example.com/your-username/nonexistent-project.git master