随笔分类 - repo/git
摘要:使用gitlab的服务端hook来对增量代码的文件进行扫描,tree如下: 1.安装编译git-secrets组件 apt-get -y update apt-get -y install build-essential git clone https://github.com/awslabs/gi
阅读全文
摘要:第一次肯定是同git commit 之后使用git commit --amend
阅读全文
摘要:1.如果是单个仓的代码下载: git clone 如果项目过大时,会出现网关请求超时,加上--depth=1即可解决,意思是只克隆最近一次的commit 2.如果是多个仓的代码:(manifest.xml已经配置好) repo init ->repo sync 同步仓->repo start loc
阅读全文
摘要:1.需要生成密钥 ssh-keygen -t rsa -C "xx@xxxx.com" -b 4096 2.查找当前分支对应的tag git describe --tags 3.将当前的代码切到某一个tag上 git checkout +tag
阅读全文

浙公网安备 33010602011771号