Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

Github-Updates were rejected because the remote contains work that you do not have -how to push my work to git hub

Asked by Daniel Baker Jun 15, 2021 1.3K views 1 answer
Share

About this question

 I created a new repo, cloned it, added files to the directory, added them with add -A, committed changes, and when I try to push using git push master I get 

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

This doesn't seem to make sense since it's a new repo and contains only a readme file.

Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.