git-php
git-php copied to clipboard
Library for work with Git repositories in PHP.
In Commit 5e82d5479da5f16d37a915de4ec55e1ac78de733 you have added the option `--end-of-options ` to every command. In theory this should just work and also the documentation [2.35.1](https://git-scm.com/docs/gitcli/2.35.1) and [2.25.1](https://git-scm.com/docs/gitcli/2.25.1) mention this option. But...
Add methods setUserName, setUserEmail and setUserNameAndEmail, for quick set the name, email or both
Add method getFileHistory, to return history of commits for specific file
Just a simple method to check whether the given file exists in the repository or not. I'm not sure what would be a good method name, so please let me...
Unfortunately I wasn't able to get your tests running on my windoze machine. But I verified my code with a standalone php script. ``` C:\Users\deruli\Documents\GitHub\git-php>php test.php array(1) { ["src/GitRepository.php"]=> string(1)...
I added git clean to the repo functionality and fixed the Comments to have them declare the proper exception throwing. As both files are in the same namespace, the thrown...
My code structure looks something like this: ```php use CzProject\GitPhp\Git; $git = new Git; $repo = $git->open(base_path()); // base path of local files $repo->checkout('main'); $repo->pull('origin'); // make some changes to...