上传项目到远程git

  1. 初始化本地项目

    git init

  2. 提交项目到本地

    git add .
    git commit -m ‘init’

  3. 和远程项目关联

    git remote add origin 远程仓库地址

  4. 将本地内容强制覆盖推向远程仓库

    git push -f origin master

猜你喜欢

转载自blog.csdn.net/yucdsn/article/details/80559745