I am trying to push my django project to Gihub
I have installed Github for windows and Git CLI
and followed all the steps
- First created a Repo on github with a ReadMe file (default)
- Created one simple django application
- git init
- git add .
- git commit -m "First Commit"
- git remote add origin https://github.com/eMahtab/DjangoProject.git
- git push origin master
But in last step I am getting error
To https://github.com/eMahtab/DjangoProject.git
! rejected master -> master (fetch first)
error: failed to push some refs to https://github.com/eMahtab/DjangoProject.git
hint: Updates were rejected because the remote contains work that you do not have
locally. This is usually caused by another repository pushing to the same ref. You may
want to first integrate the remote changes (e.g., git pull ...) before pushing again.
See the Note about fast-forwards in git push --help for details.