repo is explicitly designed to not delete your local changes during a sync.
Your first friend is "repo status": that'll list all the files in
which you've made changes.
If you are sure that you want to lose all your changes, this'll most
probably do it. It is a destructive command with no turning back:
repo forall -c 'git reset --hard ; git clean -fdx'
Another simpler approach is "rm -rf * ; repo sync -l"
JBQ
On Thu, Mar 7, 2013 at 10:19 PM, JST <
jst...@gmail.com> wrote:
> I've been dabbling in editing some source code and compiling it and running
> it. I've had some success, however would like to restore my source tree to
> its original state as in the main AOSP repository. However, "repo sync"
> doesn't seem to restore some files that I have edited. Is there a way I can
> get my soruce tree back to "stock"?
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to
android-...@googlegroups.com
> To unsubscribe from this group, send email to
>
android-buildi...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
android-buildi...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.
Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.