Title: Using git
Last modified: March 29, 2018

---

# Using git

 *  [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/)
 * (@samtyurenkov)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/using-git/)
 * Hi guys, I’m trying to setup and use git and I’m getting this error:
 *     ```
       Fatal error: Uncaught Error: Call to a member function getRepositoryPath() on null in /var/www/site/wp-content/plugins/aceide/src/Modules/GitOps.php:433 
       Stack trace: 
       #0 /var/www/site/wp-includes/class-wp-hook.php(286): AceIDE\Editor\Modules\GitOps->git_clone('') 
       #1 /var/www/site/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) 
       #2 /var/www/site/wp-includes/plugin.php(453): WP_Hook->do_action(Array) 
       #3 /var/www/site/wp-admin/admin-ajax.php(97): do_action('wp_ajax_aceide_...') 
       #4 {main} thrown in /var/www/site/wp-content/plugins/aceide/src/Modules/GitOps.php on line 433
       ```
   
 * My settings are:
 *     ```
       /var/www/git/
       The Git repository you want to work with. 
   
       /usr/bin/git/
       Full path to the local Git binary on this server.SSH key path
   
       /var/www/git/ssh/
       Full path to the folder that contains your SSH keys
       ```
   
 * Additional:
 *     ```
       /var/www/git/ owner is www:data
       /usr/bin/git/ owner is root
       /var/www/site/ owner is www:data 
       ```
   
 * Any ideas?
    -  This topic was modified 8 years, 2 months ago by [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [shanept](https://wordpress.org/support/users/shanept/)
 * (@shanept)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/using-git/#post-10412846)
 * Hi Sam,
 * If I may direct your attention to [the line](https://github.com/AceIDE/editor/blob/9aadf85afa7e584877318f460a3bf3f72bb3ed97/src/Modules/GitOps.php#L433)
   where the error occurs, you will see from the error that ‘$this->git’ is NULL.
 * ‘$this->git’ is defined [here](https://github.com/AceIDE/editor/blob/9aadf85afa7e584877318f460a3bf3f72bb3ed97/src/Modules/GitOps.php#L291)
   or [here](https://github.com/AceIDE/editor/blob/9aadf85afa7e584877318f460a3bf3f72bb3ed97/src/Modules/GitOps.php#L296).
   As you can see, these lines are both commented out, therefore there is no ‘$this-
   >git’! The reason for this, is that git is still a development feature, and as
   I currently have no use for it, I haven’t been developing it. (I would be very
   happy to accept a pull request though!)
 * Sorry about that! If you’re keen to try get it working, please do feel free to
   play around and let me know how you go.

Viewing 1 replies (of 1 total)

The topic ‘Using git’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/aceide_f0f0f0.svg)
 * [AceIDE](https://wordpress.org/plugins/aceide/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aceide/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aceide/)
 * [Active Topics](https://wordpress.org/support/plugin/aceide/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aceide/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aceide/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [shanept](https://wordpress.org/support/users/shanept/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/using-git/#post-10412846)
 * Status: not resolved