问题:新建项目如何推到Github

  1. 在github创建一个repository

  2. 执行命令

    git init
    
    git add .
    
    git commit -m""
    
    git remote add origin https://github.com/xxxxxxxxxx/xxxxxxxx.git
  3. 可使用 git remote -v 查看关联远程分支状态
  4. 后续正常提交代码即可
  5. 首次提交git push origin master
  6. 首次拉取git pull origin master

猜你喜欢

转载自www.cnblogs.com/wen-xin/p/11832507.html
今日推荐