zoukankan      html  css  js  c++  java
  • gitlab应用

    1.git config --global user.email "my@bimt.com"  //注册本地环境

    2.ssh-keygen -t rsa -C "my@bimt.com"                 //生成本机的key

    3.在gitlab加入.ssh中生成的key                                //gitlab中注册本机

    4.git clone git@my.git                                         //将gitlab中工程加载到本地

    5.git add *                                                         //将本地工程添加到缓冲区

    6.git commit -m "message"                                 //将本地工程提交到缓冲区

    7.git push roigin branch name                             //将本地工程推送到远程服务器

    8.git status                                                       //查看本地工程状态

    9.git log                                                           //查看推送日志

    10.git branch                                                    //查看分支

    11.git checkout new branch name                       //新建分支

    12.git checkout . (直接回滚当前目录一下的所有working tree内的修改,会递归扫描当前目录下的所有子目录)

    注:红色为自己对应环境

  • 相关阅读:
    shell脚本while read line的使用
    shell 一次性赋值多个变量
    Docker Volume
    nginx反向代理与负载均衡
    lua中 table.getn(t) 、#t、 table.maxn(t) 这三个什么区别?
    pv绑定pvc
    使用brew services管理服务
    Kubernetes中强制删除Pod、namespace
    shell 中的${},##, %% , :- ,:+, ? 的使用
    petalinux中fsbl源码
  • 原文地址:https://www.cnblogs.com/wuhailong/p/5319079.html
Copyright © 2011-2022 走看看