git-2 rework, drop dirty hacking

Signed-off-by: layman <layman@localhost>