github - git push -u origin master mistake -
ok, guess question popular, dint understand. create new repo on github, go folder, have code next steps:
git init git add . git commit -m "initial commit" git remote add origin https://github.com/mynick/mycode.git git push -u origin master
and get:
fatal: 'origin' not appear git repository fatal: not read remote repository. please make sure have correct access rights , repository exists.
what doing wrong? thank you.
try adding ssh
repo.
it like
git remote add origin git@github.com:mynick/mycode.git git push -u origin master
that should work well.
Comments
Post a Comment