@Ongion @marcan @karl There's already git plugins for emacs!

github.com/magit/magit