'How to make an initial commit using pygit2?

Using the pygit2 package how do you create an initial commit on a new repository?

I keep getting an error message that "refs/heads/master" isn't found.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source