If you’re using Revisr on a WordPress installation that is already in a Git repository, you can simply activate the plugin and as long as the “.git” folder is in the document root or above, Revisr should pick up the settings for the existing repository with no further configuration required.
If Revisr is not able to find the repository, you can define the path to the repository in your wp-config.php file, like below:
define( 'REVISR_GIT_DIR', dirname( __FILE__ ) );
The example above would set the root directory of the .git repository to be in the same directory as your wp-config.php file. Any full path should work here.
Make sure that you place the above code above the line that starts with “Absolute path to the WordPress directory”. (Just below the the “WP_DEBUG” constant should work well).
Note: Revisr will use the existing settings stored in the repository “.git/config” for pushing and pulling. You can also edit these settings if needed through the Revisr settings pages.