编辑:我们不是开发团队的成员。我已经克隆了下面列出的repo to try命令。
我的同事通过Jenkins启动了部署,在部署因错误而停止5分钟后:
[WARNING] The requested profile "ntic" could not be activated because it does not exist.
[ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start (default-cli) on project nsnet-parent: Error starting release: Error starting release: a release branch [refs/remotes/origin/release/8.15.0] already exists. Finish that first! -> [Help 1]这里是日志的一部分,指定的commitis在jenkins作业输出中查找。
> git.exe config --local --remove-section credential # timeout=10
> git.exe rev-parse "refs/remotes/origin/RCI^{commit}" # timeout=10
> git.exe rev-parse "refs/remotes/origin/origin/RCI^{commit}" # timeout=10
Checking out Revision 7e91bd1bf2353bc74ddb491faf2f83917b487211 (refs/remotes/origin/RCI)
> git.exe config core.sparsecheckout # timeout=10
> git.exe checkout -f 7e91bd1bf2353bc74ddb491faf2f83917b487211
> git.exe rev-list 7e91bd1bf2353bc74ddb491faf2f83917b487211 # timeout=10因为我看不到分支名称RCI或最后一次提交。我尝试了git reflog,但我看不到部署中使用的提交7e91bd1bf2353bc74ddb491faf2f83917b487211或分支RCI。您是否知道,是否仍有可能恢复RCI分支和所有代码?
我们有Jenkins on Windows和Gitlab-ci用于git项目,谢谢
发布于 2020-02-07 02:11:21
我已经克隆了存储库,但似乎仍然存在以下命令错误: error:格式错误的对象名称7e91bd1bf
我尝试了git reflog,但我看不到提交7e91bd1bf2353bc74ddb491faf2f83917b487211
如果提交被强制推送覆盖,就会发生这种情况:克隆存储库,并在其中执行git log或git reflog,将不会检索该提交。
最好是:
https://stackoverflow.com/questions/60085548
复制相似问题