Pushing to github


#1

Hi,
I am in Step 10, Portfolio project, Ruby on Rails.

I created a github account but can't push

$ git push -u origin master
Username for 'https://github.com': zinyosrim
Password for 'https://zinyosrim@github.com':
To https://github.com/zinyosrim/CodeacademyPortfolioApp.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/zinyosrim/CodeacademyPortfolioApp.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
$

can you please help?
Thanks
Zin


#3

yes, and it worked. thanks


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.