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
    
  • 相关阅读:
    DRF简易了解
    Restful API接口规范
    Python分页
    vue笔记(一)
    CNN实现手写数字识别
    深度学习框架Keras
    NLP自然语言处理
    深度学习框架Tensorflow
    维度的区分
    矩阵求导
  • 原文地址:https://www.cnblogs.com/DoNetCShap/p/15800664.html
Copyright © 2011-2022 走看看