zoukankan      html  css  js  c++  java
  • GitLab使用

    git推送

    cd project
    git init
    git remote add origin <remote>
    git add .
    git commit -m "first commit"
    git push -u origin master
    
    • 第一次git需要输入用户名和密码,按提示输入即可;
    • 没安装git的话会弹出提示,按提示安装就行;

    git拉取

    cd project
    git init
    git remote add origin <remote>
    git pull <remote> <branch>
    
    • remote是http地址,branch就是master

    如果commit时候遇到如下类似情况:
    No ESLint configuration found.
    可以通过在命令中添加--no-verify 参数来跳过

    git commit -m "first commit" --no-verify
    

    其他命令

    //设置分支
    git branch --set-upstream-to=origin/master master
    
    //回退版本
    git reset --hard 版本号
    
    //查看remote仓库
    git remote -v
    
    //清除remote仓库
    git remote remove origin
    
  • 相关阅读:
    服务器被黑

    ZXW说
    抽象类
    URL参数加密解密过程
    SqlServer 跨服务器 DML
    发布
    C#操作XML小结
    定时指执程序
    SQL语句判断数据库、表、字段是否存在
  • 原文地址:https://www.cnblogs.com/DoNetCShap/p/15800664.html
Copyright © 2011-2022 走看看