On Friday, September 30, 2016 at 17:40 CEST,
Peter Desjardins <
peter.des...@gmail.com> wrote:
[...]
> I want to run a command that will make sure that the local clones of
> the repositories I'm using match the latest commits on the target
> branches.
> I tried 'repo sync -d' and 'repo forall -vc "git reset --hard"' after
> doing some googling, but I found that I still have temporary files in
> the local clone directories.
That's not surprising since neither of those commands remove untracked
files. You'll probably want to run "git clean -fdx" in each git.
> When I run "git status" from the clone, it doesn't report any
> untracked files, but I can see the new files in the clone directory.
Are they listed in a .gitignore file or .git/info/exclude?
> I'm guessing that there's something about my clone
> having a detached HEAD that prevents it from resetting to a remote
> branch?
No, I don't think that's related.
[...]
--
Magnus Bäck | Software Engineer, Firmware Platform Tools
magnu...@axis.com | Axis Communications