---
title: "Using git with Spring Roo and the git addon"
date: 2011-03-15T14:56:12+00:00
author: "poornerd"
canonical: https://www.poornerd.com/2011/03/15/using-git-with-spring-roo-and-the-git-addon/
source: Raw Markdown twin of the HTML article; content is the original source.
---
Spring Roo finally has an installable git addon (since Version 1.1.2) which will setup, config and auto commit your files to git for you.

You can read more about it&#8217;s history here:  https://jira.springsource.org/browse/ROO-911?page=com.atlassian.jira.plugin.system.issuetabpanels%253Acomment-tabpanel

However, I am sure you really just want the scoop on how to use it.  First you need to install it, then run the setup and then commit:

1. look for the addon:

<pre class="brush: plain; title: ; notranslate" title="">addon search git
2 found, sorted by rank; T = trusted developer; R = Roo 1.1 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 Y Y 1.1.2.RELEASE Offers GIT integration in the project. Each successfully
       executed command will be automatically committed to a local GIT...
02 Y Y 0.9.3.0001 This bundle wraps the standard Maven artifact: jgit-0.9.3.
--------------------------------------------------------------------------------
[HINT] use 'addon info id --searchResultId ..' to see details about a search result
[HINT] use 'addon install id --searchResultId ..' to install a specific search result, or
[HINT] use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version
</pre>

2. install the addon:

<pre class="brush: plain; title: ; notranslate" title="">~.domain.Vote roo&gt; addon install id --searchResultId 01
Target resource(s):
-------------------
   Spring Roo - Addon - GIT (1.1.3.BUILD-SNAPSHOT)

Required resource(s):
---------------------
   Spring Roo - Wrapping - jgit (0.9.3.0001)
   Spring Roo - Wrapping - jsch (0.1.42.0001)

Deploying...done.

Successfully installed add-on: Spring Roo - Addon - GIT [version: 1.1.2.RELEASE]
[Hint] Please consider rating this add-on with the following command:
[Hint] addon feedback bundle --bundleSymbolicName org.springframework.roo.addon.git --rating ... --comment "..."
</pre>

3. setup the addon:

<pre class="brush: plain; title: ; notranslate" title="">git setup
</pre>

4. commit

<pre class="brush: plain; title: ; notranslate" title="">git commit all --message "this is a test"
</pre>
