简体   繁体   English

如何查看我上传的提交?

[英]How can I see commits that i upload?

I did some changes in my code and after that i did git-review .我对我的代码做了一些更改,然后我做了git-review The changes were on the branch b1 and I created only one commit for these changes.更改位于分支b1上,我只为这些更改创建了一个提交。 And the changes still unmereged.并且这些变化仍然没有被合并。

After some-days, I deleted this repo from my workspace, and i cloned this repo again.几天后,我从我的工作区中删除了这个 repo,然后我再次克隆了这个 repo。
I see the commit in gerrit, but I don't see on the branch, even after I did git pull --rebase .我在 gerrit 中看到了提交,但在分支上看不到,即使在我做了git pull --rebase之后也是如此。

What is the reason that I don't see my commit?我看不到我的提交的原因是什么? And how can I fix that (so I will can see it)?我该如何解决这个问题(这样我才能看到)?

If you don't see the commit on the branch I assume it's still on reviewing (it wasn't merged yet).如果您没有在分支上看到提交,我认为它仍在审核中(尚未合并)。 In this case, if you want to see the commit locally in a new repository clone, you need to download the commit explicitly.在这种情况下,如果您想在新的存储库克隆中本地查看提交,则需要显式下载提交。

  • Go to your Gerrit server; Go 到您的 Gerrit 服务器;
  • Go to the change page with your commit (which is on reviewing); Go 到您提交的更改页面(正在审核中);
  • Click on "DOWNLOAD" (on the middle-right of the page);点击“下载”(在页面的右中);
  • Choose and copy one of the available commands to download the commit:选择并复制可用命令之一以下载提交:

在此处输入图像描述

All commands will download the commit using different methods, I suggest using the "Checkout" one.所有命令都将使用不同的方法下载提交,我建议使用“Checkout”方法。

  • Execute the download command in your local repository.在本地存储库中执行下载命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何包含来自GitHub存储库各个分支的提交? - How can I include commits from various forks of a GitHub repo? 我可以在dotcloud上浏览源/提交吗? - Can I browse source/commits on dotcloud? 我犯了一个git错误,如何恢复提交的提交? - I made a git mistake, how can I recover my commits to push? 如何将Eclipse Android项目上传到GitHub? - How can I upload my Eclipse Android project to GitHub? 在Git中重写了我的整个仓库,我似乎无法恢复到以前的提交 - Overwrote my entire repo in Git and I can't seem to get back to my previous commits 我可以在SVN / GIT存储库中看到未成功推送的文件吗? - Can I see the unsuccessfully pushed files on SVN/GIT repository? 如何删除我对存储库所做的所有提交并永久删除 Git 存储库 - How to delete all the commits I have made to a repository and to permanently delete a Git repository 如何在不切换分支的情况下检查另一个分支中是否有新的提交? - How do I check if there are new commits in another branch without switching branches? 如何在 github 中查看我是贡献者的存储库? - How to see repositories where I am contributor in github? 如何保护我的Python代码库,以便访客无法看到某些模块,但仍然有效? - How do I protect my Python codebase so that guests can't see certain modules but so it still works?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM