git 备忘


记录经常用到又不容易记住的git命令

忽略和 恢复已经跟踪的文件

git update-index --assume-unchanged file #忽略跟踪
git update-index --no-assume-unchanged file # 恢复跟踪

服务器证书验证失败

server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

export GIT_SSL_NO_VERIFY=1
#or
git config --global http.sslverify false

tag

添加标签,并添加注释

git tag -a 0.0.1 -m”基本部署完成”