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

  • git init
  • git remote add origin [email protected]: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

猜你喜欢

转载自www.cnblogs.com/xiximayou/p/12001583.html