随笔分类 - Git
记录git遇到的相关问题及知识点
摘要:## 1.修改本地分支名 ```js git branch -m old_branch new_branch #本地分支重命名 ``` ## 2.修改远程分支名 ### 方法一、 ```js git push origin :old_branch #删除远程仓库中的旧分支 //或 git push
阅读全文
摘要:git提交时报错: fatal: unable to access 'https://gitlab.XX.git/': Could not resolve host: gitlab.XX.com.cn 方法一: 此时需要配置代理: git config --global http.proxy 'ht
阅读全文
摘要:用git进行代码管理,当我执行git commit操作时,会出现以下代码来检测提交的代码 Pro:hcf-vue hh$ git add --all Pro:hcf-vue hh$ git commit -m'wq' husky > pre-commit (node v8.11.2) ❯ Runni
阅读全文
摘要:警告信息: warning: SECURITY WARNING warning: | TLS certificate verification has been disabled! | warning: warning: HTTPS connections may not be secure. Se
阅读全文
摘要:1 先切换到别的分支: git checkout dev20180927 2 删除本地分支: git branch -d dev2020422 3 如果删除不了可以强制删除,git branch -D dev2020422 4 有必要的情况下,删除远程分支:git push origin --del
阅读全文
摘要:https://blog.csdn.net/dengsilinming/article/details/8000622 https://zhuanlan.zhihu.com/p/129854679?utm_source=wechat_session&utm_medium=social&utm_oi=
阅读全文