Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performing a git pull in pure PHP

I was wondering if anyone knows of a library or how to perform a get pull request with pure PHP, without git being installed on the server.

First of all, is this even possible? I have seen the odd class, but they don't seem to be able to perform pull requests.

I guess an alternative would be bundling some form of stripped down version of git with my script. Would that be possible?

I am really at a loss here so any help or suggestions would be much appreciated.

Thanks.

like image 942
Olical Avatar asked Aug 09 '11 10:08

Olical


1 Answers

I have just realised that you can use SVN to request a repository from GitHub.

And SVN seems supported by PHP.

So I will use SVN, it should do the trick.

I hope this has saved someone else the trouble of Googling for hours. Give SVN + GitHub a go.

like image 194
Olical Avatar answered Oct 06 '22 23:10

Olical