
git
something about git
sky527759
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git提交空目录约定俗成的方法
空目录在commit时,因为不会被git跟踪(跟踪文件而不是跟踪目录),所以无法将这个空目录提交到仓库,但有时又必须将这个空目录提交到仓库,所以就产生以下这个约定俗成的方法:还是利用git跟踪文件的特性,在空目录下创建.gitkeep文件,然后在项目的.gitignore中设置不忽略.gitkeep即在.gitignore文件中增加下面一行!.gitkeep.gitkeep 是一个约定俗成的文件名并不会带有特殊规则参考Git提交空目录...原创 2022-04-30 19:30:41 · 693 阅读 · 0 评论 -
git diff branch in vscode
by extension: git historyreference:how-to-compare-different-branches-in-visual-studio-codeIt's now possible by using the githistory extension.Here's a small trick though: You can compare the latest commits from each branch and that would be the same a原创 2021-10-15 16:43:17 · 572 阅读 · 0 评论 -
git同步远程已删除的分支和删除本地多余的分支 from csdner gaoshan12345678910
git同步远程已删除的分支和删除本地多余的分支转载 2021-08-06 09:59:01 · 116 阅读 · 0 评论 -
git tag operation
Git 推送和删除远程标签git tag创建、远程推送、回退以及强推push -f原创 2021-07-19 10:34:15 · 98 阅读 · 0 评论 -
Git 删除本地分支后同步删除远程分支 from csdner AIima
Git 删除本地分支后同步删除远程分支转载 2021-07-08 17:51:24 · 240 阅读 · 0 评论 -
git 规范
分支模型分支说明master 分支主分支,永远处于稳定状态,对应当前线上版本不允许在该分支直接提交代码,只能提交pull requestmaster 回滚时,按版本回滚bitbucket上应设置相关的分支保护策略(禁止重写历史,禁止deleted,禁止没有pull request的修改)beta 分支预发布分支,发布前先将分支合并入beta,进行自动化测试,部署前检查等。协作人数少于3时,可不使用beta分支不允许在该分支直接提交代码,只能提交pull request转载 2021-03-17 17:54:26 · 570 阅读 · 0 评论 -
git compare branch from csdner yzpyzp
Git diff branch1 branch2 --stat //显示出所有有差异的文件列表Git diff branch1 branch2 文件名(带路径) //显示指定文件的详细差异Git diff branch1 branch2 //显示出所有有差异的文件的详细差异转载 2020-11-20 12:00:19 · 401 阅读 · 0 评论 -
git 误删分支恢复方法 from csdner 傲雪星枫
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本文链接:https://blog.csdn.net/fdipzone/article/details/50616386在使用git的过程中,因为人为因素造成分支(commit)被删除,可以使用以下步骤进行恢复。首先用以下步骤创建一个新分支,修改一些文件后删除,以便进行恢复。1.创建分支 abcgit branch abc2.查看分支列表git branch -aabcdevelopr转载 2020-11-19 23:33:26 · 407 阅读 · 2 评论 -
git远程删除分支后,本地git branch -a 依然能看到的解决办法 from csdner 四魂の魊
使用 git branch -a 命令可以查看所有本地分支和远程分支(git branch -r 可以只查看远程分支)发现很多在远程仓库已经删除的分支在本地依然可以看到。使用命令 git remote show origin,可以查看remote地址,远程分支,还有本地分支与之相对应关系等信息。此时我们可以看到那些远程仓库已经不存在的分支,根据提示,使用 git remote prune origin 命令:$ git remote prune origin这样就删除了那些远程仓库不存在的分支。转载 2020-11-18 15:02:20 · 244 阅读 · 0 评论 -
QA when using git
Q:remote:remote: error: The last gc run reported the following. Please correct the root causeremote: and remove gc.log.remote: Automatic cleanup will not be performed until the file is removed.remote:remote: warning: disabling bitmap writing, as som.原创 2020-11-10 08:30:11 · 607 阅读 · 0 评论