[LibGit2] Add credentials hook on push.