forked from openitg/openitg
-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation Contribute
Wanny edited this page Apr 12, 2011
·
3 revisions
To just look at the code, you can make a read-only checkout by doing the following. You will be able to make local changes and "commit" them locally, but you won't be able to push them anywhere to share them.
- Install git. For most Debian-based Linux distros,
apt-get install git-core
. - Clone the repository. This fetches the entire history to your local computer so you can review history, see differences, and build the source.
git clone git://github.com/openitg/openitg.git
- Download msysGit and install it. It's needed even if you use other tools.
- Download TortoiseGit and install it.
- Clone the repository, URL is
git://github.com/openitg/openitg.git
To contribute, instead of just checking out the code read-only, you should create your own "fork" in github so you can ask other people to review your changes and merge them into the project.
- Create an account on Github, it's free!
- Go to the OpenITG Repository and click "Fork"
- Now you will be in your own copy of the repository. You can clone it by following the directions above with the URL #
[email protected]:<YOURNAME>/openitg.git
or you can add it to an existing clone of the other repository by runninggit remote add personal [email protected]:openitg/openitg.git
- Make your changers
- Commit your changes locally:
- Show modified or added files with
git status
- For each added or modified file, run
git add file...
- View the diff you are about to commit with
git diff --cached
- Commit the change with
git commit
- be sure to enter a suitable commit message to help us understand your change!
- Show modified or added files with
- Once you have committed your changes locally, push them to your personal repo by running
git push <remote> <branch>:master
where remote is "origin" or "personal" depending on which you did for step 3 above, and branch is the branch you are working on (master by default). - Finally, Submit a "Pull Request"
- On your personal repository page, click "Pull Request"
- Write a short description of your change. Be sure to include the goal, any bugs fixed, features added, etc, and any credit you wish to have.
- "Base Branch" is the branch you want to put your changes on (usually master) and "Head Branch" is the branch in your repository you made your changes to (often master).
- Click "send pull request" to ask us to review your change and pull it into OpenITG!
For more details on how to develop OpenITG see Documentation/DeveloperGuide.