I’m trying to create a GUI made in php + js to list all the local + remote git branches for any repo. I have everything working except the part when i try to run the git branch -D command.
Basically the command never gets executed and the response is an empty array.
My take is that it is trying to delete it with the apache user _www instead of my user.
I would love to make this open-sourced so i think it won’t help to add the ssh key to my apache.
Ideas? Suggestions? Any help would be greatly appreciated.
Cheers
You may be interested in looking into PHP Git (PHP bindings for Git2).
Reference: https://github.com/libgit2/php-git
Enjoy and good luck!