Page History
...
- Intro to Git for those who know SVN: http://git.or.cz/course/svn.html
- Pro-Git Book (Online) :-> Great intro to Git in general
- Git Community Book (Online) :Git Reference: http://gitref.org/-> Another great Git introduction
- Git Reference -> This site is a great reference for various Git commands that are available
- Fedora Developers' list of useful Git Resources
- Fedora Developers' Git Guidelines and Best Practices (not all are Fedora specific)
- Fedora Developers' Git Quick Start Guide
- Chris Wilper's (Fedora Committer) tips/rules on using Git: https://wiki.duraspace.org/display/~cwilper/How+I+Use+Git
...
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 | ||
---|---|---|
| ||
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 For example: |
Checking the status of your tree.
git status
...