Rolled back to an API of rugged's libgit2 version.

To be reverted, when rugged upgrades its libgit2
Added a gitignore