- git fetch HTTPS路径出现错误
fatal: unable to access 'https://github.com/spring-guides/draft-gs-multi-module.git/': error setting certificate verify locations:
CAfile: D:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none
解决方法
设置证书路径
git config --system http.sslcainfo "your_ca_bundle_crt_path\curl-ca-bundle.crt"
或者直接禁用掉验证
git config --system http.sslverify false
- git 删除远程分支
git push origin :$remote_branch_name
or
git push --delete $remote_branch_name
or
git push origin --delete $(git tag -l "*0.0.*")
- git删除本地分支
git branch -D $local_branch
or
git tag -d $(git tag -l "*0.0.*")
- git删除远程分支后同步本地
git fetch -p