Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Clone the repository. (The git repo is ~65MB). In the below example, we named the local directory "dspace-src", but you can name it whatever you want.

Code Block
git clone git://github.com/DSpace/DSpace.git dspace-src
cd DSpacedspace-src

Wiki Markup
At this point, you now have a copy of the DSpace Source Code (i.e. {{\[dspace-source\]), and you are checked out to the branch {{master}} (master is akin to svn trunk), which will work, but it is the bleeding edge of development and not recommended for production instances. 

If you would like to develop on DSpace for your local needs (University, Library, or Institution), you are encouraged to fork this GitHub repository, and commit your changes to your personal/organizational repository. We recommend that you build your repository off of a released "tag" of DSpace such as dspace-1.8.2. The benefit of being based off of a tag/release-branch is that releases have a series of testing phases to ensure high quality, and there is some maintenance of bug and security fixes.

Code Block
git checkout dspace-1.8.2

From there, you can follow the standard DSpace build instructions follows. in order to build/install DSpace from the source code. For example:

Code Block
mvn package 
cd dspace/target/dspace-<version>[version]-build.dir
ant update 
/etc/init.d/tomcat6 restart

Quick Primer on Using Git

Info
titleFor Additional Help

The following is a very brief intro/primer on various Git commands you may find useful. For more detailed information on various Git commands, we recommend reading one or more of the #Git Resources listed above. Additionally, if you want to read the Git Documentation, you can use git help command to get more specifics about other git commands.

For example: git help status would give you the official documentation for the "status" command.

Checking the status of your tree.
git status

...