How to create a local repository and remote repository in Gitlab using command line?
Clash Royale CLAN TAG#URR8PPP
How to create a local repository and remote repository in Gitlab using command line?
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 push using SSH(Remote repository created) -
git push --set-upstream git@gitlab.example.com:namespace/nonexistent-project.git master
Git push using HTTP -
git push --set-upstream https://gitlab.example.com/namespace/nonexistent-project.git master
Possible duplicate of How to create a new gitlab repo from my existing local git repo, using CLI?
– Praveen P
Aug 12 at 20:11
@PraveenP I was looking for creating both local repository and remote repository. The above question only answers about creating remote repository. So this is not a duplicate and also I got the solution for my question and mentioned in my question also.
– Gobind
Aug 13 at 8:30
1 Answer
1
Steps to create Local repository and remote repository using Gitlab.
Git push using SSH(Remote repository created) - git push
--set-upstream git@gitlab.example.com:namespace/nonexistent-project.git
master
Git push using HTTP - git push --set-upstream
https://gitlab.example.com/namespace/nonexistent-project.git master
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
stackoverflow.com/questions/33101962/… this might help
– argo
Aug 12 at 17:47