I am using git-review with Gerrit
for code review.
I just came across a pretty serious problem when using this tool: I lost my changes.
Here is what I did:
- added files with
git add
- forgot to
git commit
- executed
git review --reviewers johndoe
All the added files are now gone, changes lost. git status
says nothing is changed.
git review
gave me following message:
"No changes between HEAD and origin/master. Submitting for review would be pointless."
How could the changes be lost? Is there a way to revert?