I newly start working with GitHub APIs and I wanted the functionality of clone push and pull of GitHub repository with GitHub APIs. Any suggestions about this.
1 Answer
GitHub's API's are not for working with Git. They are for working with Github. Working with Github repositories (on Github), issues, pull requests, that sort of thing. Operations such as cloning, pushing, and pulling are Git operations.
To push/pull/clone programmatically you can use the normal Git binary. Or you can use libgit2.
2 Comments
Waheed Akhtar
Can you please share an example to work with libgit2 or Git binary as I am working with PReact project and I need this feature in the browser.
Schwern
@WaheedAkhtar Working with a Git repository from a browser is a different matter, as is working with files on the local filesystem. I don't know much about React. You should ask another question about what problem you're trying to solve by pushing, pulling and cloning.