ruby on rails - Unable to push code to github -


i tried push code github using following commands:

git remote add https://github.com/user/sample_app.git  git push origin master 

and got following error:

error: failed push refs 'https://github.com/user/sample_app.git' prevent losing history, non-fast-forward updates rejected merge remote changes before pushing again.  see 'non-fast forward' section of 'git push --help' details. 

to see whether error @ remote entered:

git pull 

and got following error:

error: ssl certificate problem, verify ca cert ok. details: error:14090086:ssl routines:ssl3_get_server_certificate:certificate verify failed while accessing https://github.com/sub1010/sample_app.git/info/refs fatal: http request failed 

why can't push code github?

try adding ssh repo , not http repo such

git remote rm sample_app git remote add git@github.com/user/sample_app.git 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -