Pushing Project to Github using Git on Windows -


i trying push django project gihub

i have installed github windows , git cli

and followed steps

  1. first created repo on github readme file (default)
  2. created 1 simple django application
  3. git init
  4. git add .
  5. git commit -m "first commit"
  6. git remote add origin https://github.com/emahtab/djangoproject.git
  7. 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

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -