0

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 1

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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.
@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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.