zoukankan      html  css  js  c++  java
  • 将本地项目添加到gitLab上管理

    1,先在gitLab 上创建一个新的项目,把开发人员加入项目

    2,在本地项目初始化git 

      git init 

    3,git add .

    4,  git commit -m "XX"  添加本地项目到仓库

    5,git push http://101.132.150.182/liupanpan/dx-pc.git master

    这时 确实把 本地项目 提交到了远程仓库的 master 分支上

     

    6,想要创建一个分支 并提交到远程分支上

    git branch -v  dev

    git checkout dev

    git push origin dev:dev 

    报错:

    'origin' does not appear to be a git repository
    fatal: Could not read from remote repository.

     是因为 此时 本地仓库和远程仓库还没有建立关联

    git remote add origin http://101.132.150.182/liupanpan/dx-pc.git 

    git remote add origin 远程仓库地址 

    之后再 push 即可

  • 相关阅读:
    concate string when group by
    Regular Expression
    Login failed for user
    SQL Performance Tools
    Web References
    ARTetris-AR版俄罗斯方块的源码解析
    ARKit_1
    链表
    线性表
    ORB-SLAM2的特征提取算法
  • 原文地址:https://www.cnblogs.com/lpp-11-15/p/12210878.html
Copyright © 2011-2022 走看看