Rt2x00 GIT instructions
From Rt2x00Wiki
Contents |
[edit]
INITIAL SETUP
[edit]
STEP 1 - Install GIT
1. Make sure you have curl installed 2. Check that your distro doesn't have a package that you can just install 3. If it doesn't, grab http://www.kernel.org/pub/software/scm/git/git-1.5.0.5.tar.gz 4. Extract then 'make; make prefix=/usr/local install'
[edit]
STEP 2 - Install Cogito
1. Check that your distro doesn't have a package that you can just install 2. Otherwise, grab http://kernel.org/pub/software/scm/cogito/cogito-0.18.1.tar.gz 3. Extract then 'make; make prefix=/usr/local install'
[edit]
STEP 3 - Clone a copy of our master repository for your local use
1. cg clone git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git/ (include the trailing slash !!) 2. wait. ages. 3. cd rt2x00
[edit]
STEP 4 - Configure some GIT settings
1. git-config remote.upload.url git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git/ 2. git-config user.name "My name goes here" 3. git-config user.email "My email goes here"
[edit]
STEP 5 - Create YOUR branch
1. Make up a branch name, like "serialmonkey". Replace "serialmonkey" below with your branch name 2. git branch serialmonkey 3. git checkout serialmonkey
[edit]
DAILY DEVELOPMENT COMMANDS
To commit a change in your local branch and push it to your branch on the server (i.e. cvs commit)
1. cg commit -e 2. An editor will fire up and you can enter in your commit description which should appear as per below
rt2x00: subject of the patch
Description of the patch you are commiting. Make sure you include the blank line below.
Signed-off-by: Random J Developer <random at developer.example.org>
To update your branch with the latest from the master branch on the server
1. git fetch git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git/ master:master 1.1: Altenative to updating: cg-update 2. git checkout serialmonkey (replace with your branch name) 3. git merge master
To make a patch from your branch to send to rt2400-devel
1. Make sure you first have an uptodate branch from master (as per above) 2. git-format-patch master 3. git-send-email patchfilename (replace with the filename of the patch(s) given by the command above) 4. Fill in your from address and put rt2400- devel at lists.sourceforge.net as the TO address
[edit]
ACCESS THE WEB INTERFACE
Goto http://git.kernel.org/?p=linux/kernel/git/ivd/rt2x00.git;a=summary
