/**
  * Allows you to override the git Environment.
  *
  * @param GitEnvironmentInterface $gitEnvironment
  *
  * @return \VersionControl\GitCommandBundle\GitCommands\GitCommand
  */
 public function overRideGitEnvironment(GitEnvironmentInterface $gitEnvironment)
 {
     $this->gitEnvironment = $gitEnvironment;
     $this->setGitPath($this->gitEnvironment->getPath());
     return $this;
 }