diligent
diligent

Reputation: 2352

git cannot push , cannot find Repository

I install Git-1.7.9-preview20120201.exe which is the lateest version, and I setup it using the default settings. Then i get into the gitbash, and do as the github help pages, everything is ok. Now I created a repo which names Hello-World followed by help pages below:

http://help.github.com/create-a-repo/

when I do the last step:

git push -u origin master

error happens:

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

I found a similar question, where this solution was given:

So to me the following helped: I reinstalled git, and when the wizard asked what ssh client to use, I checked OpenSSH this time!

Now I reinstall git, But I cannot select OpenSSH way when I reinstall git using Git-1.7.9-preview20120201.exe.

Could you please give me some advice, thanks in advance.

Upvotes: 1

Views: 2851

Answers (1)

Usagi Ito
Usagi Ito

Reputation: 513

check the remote settings in your created git repository:

% git remote -v

and you can fix if it has typo.

% git config remote.origin.url git://github.com/YOURNAME/REPONAME.git

the configuration is stored in ".git/config". you can rewrite it if need directly.

% cat .git/config

Upvotes: 1

Related Questions