How can I see commits that i upload?

68 Views Asked by At

I did some changes in my code and after that i did git-review. The changes were on the branch b1 and I created only one commit for these changes. And the changes still unmereged.

After some-days, I deleted this repo from my workspace, and i cloned this repo again.
I see the commit in gerrit, but I don't see on the branch, even after I did 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) ?

1

There are 1 best solutions below

0
Marcelo Ávila de Oliveira On

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 to the change page with your commit (which is on reviewing);
  • Click on "DOWNLOAD" (on the middle-right of the page);
  • Choose and copy one of the available commands to download the commit:

enter image description here

All commands will download the commit using different methods, I suggest using the "Checkout" one.

  • Execute the download command in your local repository.