Answer: Github “Updates were rejected because the remote contains work that you do not have locally.”

answer re: Github “Updates were rejected because the remote contains work that you do not have locally.”

Aug 20 ’13


This content originally appeared on DEV Community and was authored by DEV Community

This happens if you initialized a new github repo with README and/or LICENSE file

git remote add origin [//your github url]

//pull those changes

git pull origin master 

// or optionally, 'git pull origin master --allow-unrelated-histories' if you have initialized repo in github and also committed locally

//now, push your


This content originally appeared on DEV Community and was authored by DEV Community


Print Share Comment Cite Upload Translate Updates
APA

DEV Community | Sciencx (2022-03-12T08:29:10+00:00) Answer: Github “Updates were rejected because the remote contains work that you do not have locally.”. Retrieved from https://www.scien.cx/2022/03/12/answer-github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have-locally/

MLA
" » Answer: Github “Updates were rejected because the remote contains work that you do not have locally.”." DEV Community | Sciencx - Saturday March 12, 2022, https://www.scien.cx/2022/03/12/answer-github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have-locally/
HARVARD
DEV Community | Sciencx Saturday March 12, 2022 » Answer: Github “Updates were rejected because the remote contains work that you do not have locally.”., viewed ,<https://www.scien.cx/2022/03/12/answer-github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have-locally/>
VANCOUVER
DEV Community | Sciencx - » Answer: Github “Updates were rejected because the remote contains work that you do not have locally.”. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/12/answer-github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have-locally/
CHICAGO
" » Answer: Github “Updates were rejected because the remote contains work that you do not have locally.”." DEV Community | Sciencx - Accessed . https://www.scien.cx/2022/03/12/answer-github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have-locally/
IEEE
" » Answer: Github “Updates were rejected because the remote contains work that you do not have locally.”." DEV Community | Sciencx [Online]. Available: https://www.scien.cx/2022/03/12/answer-github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have-locally/. [Accessed: ]
rf:citation
» Answer: Github “Updates were rejected because the remote contains work that you do not have locally.” | DEV Community | Sciencx | https://www.scien.cx/2022/03/12/answer-github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have-locally/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.