Difference between revisions of "TubeTK/Development/GITConfiguration"

From KitwarePublic
Jump to navigationJump to search
(Blanked the page)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Install git =


== Linux (Ubuntu) ==
sudo apt-get install git-core
You may also want to install gitk and git gui
sudo apt-get install gitk
sudo apt-get install git-gui
== Windows ==
* These [http://nathanj.github.com/gitguide/tour.html instructions] are a useful guide to using git on Windows.
* Install [http://code.google.com/p/msysgit/ msysgit]
** During the installation, make sure you add Windows Explorer integration, selecting both "Add Git Bash Here" and "Add Git GUI Here"
* Once you've installed msysgit, you can right-click on any folder to open Git GUI (graphical user interface to git) or Git Bash (console interface to git)
* Selecting "git bash" allows you to enter the git commands listed in these wiki pages
* TubeTK also requires svn (subversion): on Windows, you can try [http://www.open.collab.net/downloads/subversion/ Collabnet Subversion Edge] (the command-line client is sufficient)
= Local Configuration =
These steps are a one-time setup per-user per-machine.
The <code>--global</code> option stores the configuration settings in <code>~/.gitconfig</code> in your home directory so that they apply to all repositories.
We require all commits in TubeTK to record valid author/committer name and email information.
Use [http://www.kernel.org/pub/software/scm/git/docs/git-config.html git config] to introduce yourself to Git:
$ git config --global user.name "Your Name"
$ git config --global user.email "you@yourdomain.com"
Note that "Your Name" is your ''real name'' (e.g. "John Doe", not "jdoe").
While you're at it, optionally enable color output from Git commands:
$ git config --global color.ui auto
If less displays strange characters and no color, your LESS environment variable may already be set. You can override the less options with:
$ git config --global core.pager "less -FXRS"

Latest revision as of 15:16, 26 July 2013