Okay, I'm giving up and asking, and I have looked for docs but probably missed it.
1) What exactly is the right way to update a local git repo from Gerrit that has local changes in it?
2) What exactly is the right way to update a local git repo from Gerrit if the local change has been pushed?
I keep having a variety of random problems and each time I think I understand the workflow, something else weird happens.Examples include:My local change disappears but can be cherry-picked from the reflog.Same as above, but the cherry-pick results in merge problems that go out of control.Merge changes get created which screw up future upload/sync type operations.Etc.
--Don
--
You received this message because you are subscribed to the Google
Groups "Chrome OS-team" group.
To post to this group, send email to chrome...@google.com
To unsubscribe from this group, send email to
chromeos-tea...@google.com
For more options, visit this group at
http://groups.google.com/a/google.com/group/chromeos-team?hl=en
For more information about Google Chrome OS please visit: http://go/chromeos
repo start <branch> .
<make changes>
git commit -am "branch stuff"
repo sync .
repo rebase .
repo upload .
If I finish commiting the first and want to work on another change
that is associated with this branch, I just stay on it.
Make changes.
git commit -am "new branch msg"
repo sync .
repo rebase . <this time it'll say that it found my previous commit
upstream and say it's already been merged>
repo upload .
Eventually when I don't need this branch I can repo abandon .
> --
> Chromium OS Developers mailing list: chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>
My usual workflow is to:
repo start <branch> .
<make changes>
git commit -am "branch stuff"
repo sync .
repo rebase .
repo upload .
On Wed, May 18, 2011 at 6:14 PM, Chris Sosa <so...@chromium.org> wrote:My usual workflow is to:
repo start <branch> .
<make changes>
git commit -am "branch stuff"
repo sync .
repo rebase .
repo upload .
That work flow is what I started doing naturally, but has sometimes led to my changes vanishing from the branch, but I can't figure out why. If that happens, they can be found in the reflog and cherry-picked back in.... mostly.
That work flow is what I started doing naturally, but has sometimes led to my changes vanishing from the branch, but I can't figure out why.
This is also what I do.
I would recommend emailing/searching repo-discuss in the future for any
repo-related issues. The nice thing about repo is that there is a large
community behind it.
http://groups.google.com/group/repo-discuss