Add magit and git modes to work with git repos

Signed-off-by: Chirantan Ekbote <chirantan.ekbote@gmail.com>