Development:GIT: Difference between revisions
Asipicabad (talk | contribs) No edit summary |
m Reverted edits by Asipicabad (talk) to last revision by Kess |
||
Line 1: | Line 1: | ||
If you want to contribute code to Adonthell, you will have to get the latest version of [http://en.wikipedia.org/wiki/Git_(software) Git], the revision control system we're using. Information about accessing the repositories can be found at [http://github.com/guides/home github.com], but simple instructions are replicated below. | If you want to contribute code to Adonthell, you will have to get the latest version of [http://en.wikipedia.org/wiki/Git_(software) Git], the revision control system we're using. Information about accessing the repositories can be found at [http://github.com/guides/home github.com], but simple instructions are replicated below. | ||
Line 32: | Line 24: | ||
To obtain a clone of the repository for any of the above [[Development:GIT#Adonthell Git Repositories|repositories]], issue the following command: | To obtain a clone of the repository for any of the above [[Development:GIT#Adonthell Git Repositories|repositories]], issue the following command: | ||
git clone git://github.com/ksterker/ | git clone git://github.com/ksterker/<repository>.git | ||
This will create a folder called '' | This will create a folder called ''<repository>'' under your current working directory. Inside that folder, run | ||
git pull origin master | git pull origin master | ||
Line 44: | Line 36: | ||
In order to gain push access to our repository, you'll have to be registered as a developer at [http://github.com/ github.com] and [[Development:Join The Team|become a member]] of Adonthell. Then you can get a working copy of the desired [[Development:GIT#Adonthell Git Repositories|repository]] with: | In order to gain push access to our repository, you'll have to be registered as a developer at [http://github.com/ github.com] and [[Development:Join The Team|become a member]] of Adonthell. Then you can get a working copy of the desired [[Development:GIT#Adonthell Git Repositories|repository]] with: | ||
git clone [email protected]:ksterker/ | git clone [email protected]:ksterker/<repository>.git | ||
To update your clone use | To update your clone use | ||
Line 53: | Line 45: | ||
git status | git status | ||
git add | git add <files> | ||
git commit | git commit | ||
Line 62: | Line 54: | ||
For more information on how to use Git you might want to refer to the [http://github.com/guides/git-cheat-sheet Git Cheat Sheet] or simply run | For more information on how to use Git you might want to refer to the [http://github.com/guides/git-cheat-sheet Git Cheat Sheet] or simply run | ||
git | git <command> --help | ||
[[Category:Development]] | [[Category:Development]] |
Revision as of 18:13, 27 November 2010
If you want to contribute code to Adonthell, you will have to get the latest version of Git, the revision control system we're using. Information about accessing the repositories can be found at github.com, but simple instructions are replicated below.
Once you have acquired the source code and installed all dependencies you can go forward and build Adonthell.
Adonthell Git Repositories
There are a number of repositories to keep things organized. For developing on Adonthell you will most likely need:
- adonthell -- the source code for the Adonthell Engine
- adonthell-tools -- the source code for the accompanying Tools
- wastesedge -- the data and media files for the Waste's Edge demo game
Older parts of Adonthell are still kept in a CVS repository at Savannah. See there for instructions on how to access them.
- adonthell-0.3 -- the source code to the v0.3.x branch of the Adonthell Engine
- wastesedge -- the data and media files for the v0.3.x branch of the Waste's Edge demo game
- gfx -- the media created for official games
- doc -- the LaTeX sources to project documentation now found here
Anonymous Git Access
At the beginning you will have read-only access to our central git repositories. Once you have submitted some patches and joined our team you will be granted push access.
To obtain a clone of the repository for any of the above repositories, issue the following command:
git clone git://github.com/ksterker/<repository>.git
This will create a folder called <repository> under your current working directory. Inside that folder, run
git pull origin master
from time to time to update your clone to the most recent version.
Developer Git Access
In order to gain push access to our repository, you'll have to be registered as a developer at github.com and become a member of Adonthell. Then you can get a working copy of the desired repository with:
git clone [email protected]:ksterker/<repository>.git
To update your clone use
git pull origin master
If you have added new files or made changes to existing files in your local repository:
git status git add <files> git commit
Finally, push them to the central github repository:
git push
For more information on how to use Git you might want to refer to the Git Cheat Sheet or simply run
git <command> --help