push - git fatal error when pushing md file to Github -


this driving me crazy. i'm running git on mac osx 10.10.3

i keep getting "does not appear git repository" message when trying upload md file github, here's get:

git push origin master fatal: 'github.com/bbenavides/datasciencecoursera.git' not appear git repository fatal: not read remote repository. please make sure have correct access rights , repository exists.

any appreciated thank you.

the repository in question

it looks remote isn't configured properly. can view configured remotes with

git remote -v 

github remotes like

  • git@github.com:user/repo.git ssh connections (note git@ , :), or
  • https://github.com/user/repo.git (note https://) http connections

your remote appears http remote without protocol portion.

to update remote (assuming name origin; can see in output of git remote -v before):

git remote set-url origin https://github.com/bbenavides/datasciencecoursera.git git remote set-url --push origin https://github.com/bbenavides/datasciencecoursera.git 

it's best copy url directly github, helps prevent these kinds of typos.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -