Can use libgit2 to revert commit

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fixed issue #2065: Add link to fetch to screen when push failed

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>