Back to journal
MAR 15 · 2011

Using git with Spring Roo and the git addon

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’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:
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
  1. install the addon:
~.domain.Vote roo> 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 "..."
  1. setup the addon:
git setup
  1. commit
git commit all --message "this is a test"
Follow Brian Porter on LinkedIn →
← Previous Next →
Brian Porter

Written by

poornerd

CTO at an automotive data company in Munich. Co-founder of SiteForce AG. Four decades writing software and shipping production systems.

Keep reading

Related essays