GIT osx command line can push to existing repo, can't create new -


yesterday created new github repo using following git commands in osx command line:

git init git add . git commit -m "message" git push 

now when make change repo , add, commit , push changes works fine.

now i'd try same new repo, keep getting following errors:

no configured push destination.

so i've tried adding remote repo using following command:

git remote add origin git@github.com:ronnyrr/overlaymodel.git 

which seems work (no error), repo isn't created on github account. after push using:

git push origin master 

still doesn't work, following error shows up:

error: repository not found. fatal: not read remote repository. please make sure have correct access rights , repository exists.

but strange thing when run git remote add command again prints:

fatal: remote origin exists.

although repository isn't created in github account.. when i'm using curl command create repository, repo does shows in github account:

curl -u 'ronnyrr' https://api.github.com/user/repos -d '{"name":"overlaymodel"}' 

unfortunately i'm still not able push changes using commands like:

git push overlaymodel master:master git push --set-upstream overlaymodel master:master 

gives following error:

fatal: 'overlaymodel' not appear git repository fatal: not read remote repository. please make sure have correct access rights , repository exists.

i'd change ssh key using in github, no success. after changing key can still push changes existing repo's. not push nor push origin master. sure, have master branch.

anyone knows whats up? in advance.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -