donderdag 20 januari 2011

A fresh DiffusionIT install

Guide for DiffusionIT install on a freshly installed ubuntu:
sudo apt-get install python-numpy python-scipy python-matplotlib python-gnuplot git git-gui spe
sudo apt-get install python-dev
The last is needed to allow weave compiling inline.
Now configure git
git config --global user.name "Your full name"
git config --global user.email "mymail@mail.com"

git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
To just use the code, we make a directory to extract the code to
mkdir diffusionit
cd diffusionit/
git init
git remote add origin git://gitorious.org/diffusionit.git
git fetch
git checkout origin/master
git checkout -b master
git branch -a
If you have commit rights, you can push to the code to update it, but you must setup your remote repo differently. You can change this in the file diffusionit/.git/config. If you are doing things from scratch, change the git remote line above by
git remote add origin git@gitorious.org:diffusionit/diffusionit.git
You do need to create a login on gitorious and set up ssh passwords to use for the connection, see eg this post.
Once that is ok, a typical development cycle is
git status # check if ok
git add . # add changed files
git diff # check your changes if ok
git commit -m "blabla
git push
To obtain changes that happened remote by somebody else
git fetch
git rebase origin/master
Those are the main commands if you don't intend to become a code-master :-)

Geen opmerkingen: