![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
「已注销」
这个作者很懒,什么都没留下…
展开
-
git 删除 release tags
获取tag列表git tag删除taggit tag -d 1.0.1.RC提交删除taggit push origin :1.0.1.RC原创 2021-01-16 21:34:03 · 379 阅读 · 0 评论 -
清空所有的commit记录,恢复成一个崭新的库
为什么要清空 git 中的 commit 记录?日常开发中,commit 难免会把比较重要的隐私信息 push 到远端 origin,如果你删除了再 push 远端 origin, 提交 commit 记录还是会存在的,这样就会造成安全隐患。解决使用 git checkout --orphan new_branch ,基于当前分支创建一个独立的分支new_branch;git checkout --orphan new_branch添加所有文件变化至暂存空间git add -A提交原创 2021-01-16 21:02:42 · 213 阅读 · 0 评论 -
git提交规范
关于Commit message每次提交,Commit message 都包括三个部分:headerbodyfooter格式:<type>(<scope>): <subject><BLANK LINE> // 空行<body><BLANK LINE> // 空行<footer>1.其中,header 是必需的,body 和 footer 可以省略。2.不管是哪一个部分,任何一行都不得超过72个原创 2020-12-14 18:01:53 · 253 阅读 · 0 评论 -
解决Git 推送 超时问题
git提送超时大概率是因为设置了代理,比如Vpn解决方式就是关闭代理# 设置ssgit config --global http.proxy 'socks5://127.0.0.1:1080'git config --global https.proxy 'socks5://127.0.0.1:1080'# 设置代理git config --global https.proxy http://127.0.0.1:1080git config --global https.proxy ht原创 2020-12-07 19:12:06 · 4115 阅读 · 1 评论