I
I
Ivan Fedorov2016-05-23 15:40:56
git
Ivan Fedorov, 2016-05-23 15:40:56

Can't create remote git repository?

I'm trying to create a repository on github, this is what I get:

**** MINGW64 /c/test_rep (master)
git init

git add .
warning: LF will be replaced by CRLF in .bowerrc.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fonts.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/main.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/media.css.
The file will have its original line endings in your working directory.
git commit -m "first commit"
[master (root-commit) 10dcc1e] first commit
warning: LF will be replaced by CRLF in .bowerrc.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fonts.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/main.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/media.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/common.js.
git remote add origin https://github.com/ni*****/test_rep.git

git push -u origin master

remote: Repository not found.
fatal: repository 'https://github.com/ni*****/test_rep.git/' not found

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
spotifi, 2016-05-23
@spotifi

If by key, then your URL is not correctly specified, it should be [email protected]:/ni*****/test_rep.git.
In general, the scheme is reversed.
You first create an empty repository on GitHub. And then you connect to it. This is the easiest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question