On Thursday, March 28, 2013 at 03:00 EDT,
jst...@gmail.com wrote:
> I'm new to repo/git/gerrit etc...
>
> I just submitted my first patch to aosp and need to do a few minor
> modifications to the commit.
>
> I have downloaded the commit, modified it and recommitted it to my
> local repository, but when I do git push aosp, it says "Everything
> up-to-date". But when I go to the page on android-review, it doesn't
> show anything new uploaded. What am I missing?
>
> Here is my process:
>
> 1. sync with aosp master, and sync my local working directory and make
> sure all files match the master branch, so everything is 'untouched'
> 2. git fetch <project url> <refs/changes...> && git checkout FETCH_HEAD
> 3. open the now modifiedsource files (they now show the changes from
> the last commit)
> 4. edit the source files
> 5. git add .
Watch out; this will add *all* files from the current directory
and subdirectories. In many cases this isn't what you want. If
you know you've only modified already tracked files it's safer
to use "git commit -a". It's also one command less to type.
> 6. git commit --amend
> 7. edit the commit message
> 8. git push aosp
This will push all local branches with names that match remote
branches (see git-push(1)). New patch sets are pushed the same
way as new changes, so in your case you should run:
git push aosp HEAD:refs/for/master
[...]
--
Magnus Bäck
ba...@google.com