On Tue, 30 Jun 2009, Peter W. Draper wrote:
> To get your clone back to just checked out condition you can use the:
>
> git clean -fdx
>
> command as a last resort, then it would be back to ./bootstrap.
Actually that's not 100% true. This would not clean out the submodules.
You'd need to do each of those as well. That could be done using (sorry
about the C-shell):
foreach f (`git ls-files --stage | grep ^160000| awk '{print $4}'`)
(cd $f && git clean -fdx)
end
Peter.
|