reset: Introduce git_reset_default()
tests: Fix memory leak
Fix Travis compilation warnings