向github中已创建好的repository提交文件

  • git init
  • git remote add origin git@github.com:taishan1994/learn_django.git

  • git pull origin master
  • git add . 
  • 在上一步会遇到问题:

    此时可这样解决:

    git config core.filemode false

    git config core.eol lf

  • git commit -m "my commit"
  • git push origin master
原文地址:https://www.cnblogs.com/xiximayou/p/12001583.html