美文网首页
git推送本地项目到远程服务器

git推送本地项目到远程服务器

作者: noyanse | 来源:发表于2018-04-03 16:41 被阅读0次

    现在github页面创建仓库,gitclone到本地

    • cd 项目名
    • git remote -v查看连接情况
    • git add .提交到暂存区
    • git status查看状态
    • git commit -m "the first commit project"提交到本地仓库
    • git remote add orign https://github.com/noyanse1023/jd.git关联远程仓库
    • git pull origin master // 把本地仓库的变化连接到远程仓库主分支
    • git push -u remotename branch || git push -u origin master推送到远程仓库

    相关文章

      网友评论

          本文标题:git推送本地项目到远程服务器

          本文链接:https://www.haomeiwen.com/subject/zqlchftx.html