Skip to content
Extra git tasks for phing (extending the GitBaseTask provided by recent phing releases)
Find file
New pull request
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
GitDescribeTask.php Added GitDescribeTask and a build target demonstrating its usage
GitDiffTask.php Added GitDiffTask and a build target demonstrating its usage
GitLogTask.php Added outputProperty for GitLogTask and GitTagTask; added examples fo…
GitRemoteShowTask.php Added GitRemoteShowTask and a build target demonstrating its usage
GitTagTask.php Clarified point in the installation instructions


Additional git related tasks for the phing build tool.


Phing currently comes with several tasks for interacting with git repositories, but it also lacks some that I have a need for. Thus, I am implementing them myself by extending phing's provided GitBaseTask class. I've implemented them more or less, and have submitted them to the phing maintainers for inclusion in a future release.


Installing these extra tasks is fairly straightforward, but first you need to locate your phing installation. In my case, I installed phing via pear, which was installed as part of Zend Server CE; my phing installation is therefore located in /usr/local/zend/share/pear/phing. Simply copy the Git*Task.php files from this repository into $PHING/tasks/ext/git/ and define them in your build.xml file as taskdef entries (similar to what is done in this repo).

Something went wrong with that request. Please try again.