Sunday, October 05, 2014

Clean untracked files in GIT repo

Sometimes you add some files/directory to your (local cloned) git repo directory. May be because you need them for testing or they are additional files required for reference
and it does not makes sense to add a particular directory/path in your .gitignore file. But then you want to clean those files.

git reset --hard HEAD ./<folder>
[parag@machine: Workdir] git reset --hard HEAD ./<foler>

does not work, as it does not clean with specific paths. You can do it via:

[parag@machine: Workdir] git clean -d -f

No comments:

[Solved] Android Studio : Android emulator is incompatible with Hyper-V

Have been lately doing Android development. Ran into a minor problem. So I have two machines, a desktop and a laptop. I set the project on ...