Fix git log arguments
Fix dirty check
Prevent error message while rebasing