Difference between revisions of "Working with the development version"

From VDrift
Jump to: navigation, search
m (46 revisions: Import from old wiki (on 15 May 2012))
(Various improvements, including add information about working with subversion)
 
Line 1: Line 1:
See this documentation for more info: http://help.github.com/
+
This page describes some of the most common commands used when working with VDrift's source code. It assumes you have followed the instructions in the [[Getting the development version#Cloning/Checking out|Cloning/Checking out]] section of [[Getting the development version]].
  
===Making your own changes===
+
See this documentation for more up to date and complete information: http://help.github.com/
If you want to make your own changes to improve VDrift, the easiest way is to fork the main VDrift repo on GitHub (https://github.com/VDrift/vdrift/). Just click the button near the top right of the page. You will need a free GitHub account.
+
 
Then clone your new repo onto your computer:
+
==Updating==
 +
===Git===
 +
To update the Git repositories, execute the following command in the root folder of the repository (i.e. '''vdrift''', '''vdrift/vdrift-win''' or '''vdrift/vdrift-mac'''):
 +
git pull git://github.com/VDrift/vdrift.git
 +
 
 +
===Subversion===
 +
To update the data, run the following command while in '''vdrift/data'''
 +
svn update
 +
 
 +
==Making your own changes==
 +
===Git===
 +
These instructions also apply for the dependencies - just change the file paths and URLs.
 +
====Forking====
 +
If you want to make your own changes to improve VDrift, the easiest way is to fork the main VDrift repository on [https://github.com/VDrift/vdrift/ GitHub]. Just click the button near the top right of the page. You will need a free [http://github.com GitHub] account. Then clone your new repo onto your computer:
 
  git clone git@github.com:''username''/vdrift.git
 
  git clone git@github.com:''username''/vdrift.git
 
And link this to the original VDrift repo:
 
And link this to the original VDrift repo:
 +
cd vdrift
 
  git remote add upstream git://github.com/VDrift/vdrift.git
 
  git remote add upstream git://github.com/VDrift/vdrift.git
 
  git fetch upstream
 
  git fetch upstream
  
===Updating===
+
====Uploading changes====
Once the repository has been checked out, it can be updated without downloading the entire thing again. For command line git, use the command
 
git pull
 
to check for updates and apply them.
 
If you have made some changes, use the following instead to prevent these being lost:
 
git fetch upstream
 
git merge upstream/master
 
 
 
===Uploading changes===
 
 
To upload any changes you've made, first add the files to the commit:
 
To upload any changes you've made, first add the files to the commit:
 
  git add ''filename''
 
  git add ''filename''
Line 25: Line 31:
 
  git push origin master
 
  git push origin master
  
===Checking in changes===
+
====Checking in changes====
 
You can request a VDrift developer to incorporate your changes by initiating a GitHub pull request. See this documentation for more info: http://help.github.com/send-pull-requests/
 
You can request a VDrift developer to incorporate your changes by initiating a GitHub pull request. See this documentation for more info: http://help.github.com/send-pull-requests/
  
 +
===Subversion===
 +
You will need to ask a VDrift developer in the [http://vdrift.net/Forum/index.php forums] for Subversion access in order to commit to the repository. You will need a free [http://sourceforge.net Sourceforge] account. You can then add any new files or folders you've created:
 +
svn add ''filename''
 +
And then commit the changes:
 +
svn commit -m "Commit message"
 +
If you don't want to do this, you can create a diff which you can post in the [http://vdrift.net/Forum/index.php forums]:
 +
svn diff
  
Thank you for helping make VDrift better for everyone!
+
====Thank you for helping make VDrift better for everyone!====
  
 
[[Category:Development]]
 
[[Category:Development]]
[[Category:Review]]
 
[[Category:Operating Systems:Linux]]
 
[[Category:Operating Systems:FreeBSD]]
 
[[Category:Operating Systems:Windows]]
 
[[Category:Operating Systems:Mac OS X]]
 

Latest revision as of 13:39, 26 August 2012

This page describes some of the most common commands used when working with VDrift's source code. It assumes you have followed the instructions in the Cloning/Checking out section of Getting the development version.

See this documentation for more up to date and complete information: http://help.github.com/

Updating

Git

To update the Git repositories, execute the following command in the root folder of the repository (i.e. vdrift, vdrift/vdrift-win or vdrift/vdrift-mac):

git pull git://github.com/VDrift/vdrift.git

Subversion

To update the data, run the following command while in vdrift/data

svn update

Making your own changes

Git

These instructions also apply for the dependencies - just change the file paths and URLs.

Forking

If you want to make your own changes to improve VDrift, the easiest way is to fork the main VDrift repository on GitHub. Just click the button near the top right of the page. You will need a free GitHub account. Then clone your new repo onto your computer:

git clone git@github.com:username/vdrift.git

And link this to the original VDrift repo:

cd vdrift
git remote add upstream git://github.com/VDrift/vdrift.git
git fetch upstream

Uploading changes

To upload any changes you've made, first add the files to the commit:

git add filename

Then do the commit:

git commit -m 'Commit message'

And finally send this to GitHub:

git push origin master

Checking in changes

You can request a VDrift developer to incorporate your changes by initiating a GitHub pull request. See this documentation for more info: http://help.github.com/send-pull-requests/

Subversion

You will need to ask a VDrift developer in the forums for Subversion access in order to commit to the repository. You will need a free Sourceforge account. You can then add any new files or folders you've created:

svn add filename

And then commit the changes:

svn commit -m "Commit message"

If you don't want to do this, you can create a diff which you can post in the forums:

svn diff

Thank you for helping make VDrift better for everyone!