B
B
Black_Fire2020-08-07 21:33:57
git
Black_Fire, 2020-08-07 21:33:57

How to send a locally initialized git repository to your git hosting account?

Initialized the repository locally via git init. The question is how to send it to your Git hosting account now? It is clear that you can first create it on the hosting and clone it, but I would like to know if it is possible to send it there from your computer. If, for example, I have not yet created remote repositories in my account.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2020-08-07
@Lynn

Create a new empty repository on gihab/gitlab. The repository page will provide step by step instructions on how to push your existing local repository there.

A
Aetae, 2020-08-07
@Aetae

git remote add <name> <url>
git push

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question