reset: Introduce git_reset_default()
tests: Remove useless code
Fix MSVC compilation warnings

Fix #1308