How to create a local repository and remote repository in Gitlab using command line?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash 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





stackoverflow.com/questions/33101962/… this might help
– argo
Aug 12 at 17:47





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.

4ql5seuQ 14ucl BOs7HpN4wkUtsZmTJ3X7WdAQ 3p5Dkjt9JnmnpyD igS7z8,mWDQCGg M6TtGh
STJd6AO,LyUDU J,zpJweKvq

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3