Pushing Project to Github using Git on Windows -
i trying push django project gihub
i have installed github windows , git cli
and followed steps
- first created repo on github readme file (default)
- created 1 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 getting error
to https://github.com/emahtab/djangoproject.git ! rejected master -> master (fetch first) error: failed push refs https://github.com/emahtab/djangoproject.git hint: updates rejected because remote contains work not have locally. caused repository pushing same ref. may want first integrate remote changes (e.g., git pull ...) before pushing again. see note fast-forwards in git push --help details.
try do:
git pull then can push.
Comments
Post a Comment