Skip to main content
added 1 character in body
Source Link
MeltingDog
  • 15.8k
  • 54
  • 179
  • 325

I'm following a tutorial on how to use Git. I'm up to the part where I am to push files to a newly created GitHub repo. However I am getting the error:

Updates were rejected because the remote contains work that you do not have locally. 

I'm guessedguessing this was because the GitHub repo had a readme.md file in it, provided by GitHub, and my local didn't. So I deleted that file. However I still cannot push. I'm still getting the same message.

I'm guessing this is because I have to somehow 'push' the changes (the deleting of read me) on the remote repo?

Would anyone know how to go about that?

I'm following a tutorial on how to use Git. I'm up to the part where I am to push files to a newly created GitHub repo. However I am getting the error:

Updates were rejected because the remote contains work that you do not have locally. 

I'm guessed this was because the GitHub repo had a readme.md file in it, provided by GitHub, and my local didn't. So I deleted that file. However I still cannot push. I'm still getting the same message.

I'm guessing this is because I have to somehow 'push' the changes (the deleting of read me) on the remote repo?

Would anyone know how to go about that?

I'm following a tutorial on how to use Git. I'm up to the part where I am to push files to a newly created GitHub repo. However I am getting the error:

Updates were rejected because the remote contains work that you do not have locally. 

I'm guessing this was because the GitHub repo had a readme.md file in it, provided by GitHub, and my local didn't. So I deleted that file. However I still cannot push. I'm still getting the same message.

I'm guessing this is because I have to somehow 'push' the changes (the deleting of read me) on the remote repo?

Would anyone know how to go about that?

Source Link
MeltingDog
  • 15.8k
  • 54
  • 179
  • 325

How can I delete a file from GitHub?

I'm following a tutorial on how to use Git. I'm up to the part where I am to push files to a newly created GitHub repo. However I am getting the error:

Updates were rejected because the remote contains work that you do not have locally. 

I'm guessed this was because the GitHub repo had a readme.md file in it, provided by GitHub, and my local didn't. So I deleted that file. However I still cannot push. I'm still getting the same message.

I'm guessing this is because I have to somehow 'push' the changes (the deleting of read me) on the remote repo?

Would anyone know how to go about that?