作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
假设我有一个提交 ID“0678dd19c498ede50e7714505eb5af3a5494beef”我尝试了“git log”命令,它打印出,
$git log --full-history 1c57338cd62ee1a83df57d2c37ce1f3fa17bee17
commit 1c57338cd62ee1a83df57d2c37ce1f3fa17bee17
Author: blah@blah.com
Date: Thu Feb 3 15:39:33 2011 -0800
Updated ejo syntax
commit 8fb7a6b3e44a020e4e495fd1c9a9976c8675c339
Author: blah@blah.com
Date: Thu Feb 3 14:49:19 2011 -0800
Added a sample controller
commit 628788eb81c365a88ab435ffa62978077065f72c
Author: blah@blah.com
Date: Wed Feb 2 11:33:41 2011 -0800
Test checkin
有没有打印提交的分支?
最佳答案
你想要的命令是
git branch --contains <commit>
请注意,提交可能包含在多个分支中。
关于git - 如何在 git 中找到 commitId 的分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13594324/
考虑一个非常大的变更集。在做 git show ,您将获得与所有文件相关的更改。但我只对 .cpp 所做的更改感兴趣文件,其余文件对我的分析没有用。 如何从 git show 中过滤掉它们结果? 任
假设我有一个提交 ID“0678dd19c498ede50e7714505eb5af3a5494beef”我尝试了“git log”命令,它打印出, $git log --full-history
我正在使用 maven-git-commit-id-plugin maven 插件来获取 commitId 等数据。我的 Maven 项目在子文件夹中有一些子模块,如下所示: hfe/pom.xml
我有一个创建 docker 镜像并将其推送到 ECR 的管道。由于我想使用 AWS 提供的构建环境,因此我使用了 2 个构建阶段。 管道共有3个阶段 从 GitHub 获取源代码:源 安装依赖项并创建
似乎 --deep 或 --shallow 似乎都不起作用。尝试对 TFS 中的新文件夹(当前为空)执行 git-tf checkin --deep 时出现错误。我有一个有相当多历史的 git rep
我是一名优秀的程序员,十分优秀!