Dienstag Feb 09, 2010

Some git resources

I've been using git a bit more recently and have stumbled across a couple of nice tips and tools.

Installation

I use macports to get a recent version of git on my mac

Setup

Well you should at least specify your name and email on a global level, like so

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
If you are a github user clearly you want to setup your github identity like so
git config --global github.user username
git config --global github.token xyzxyzxyzxyzxyzxyzxyzxyz
(the values to set you can find here: https://github.com/account)

Documentation

There are at least 3 online books

I've also found this article on setting up a git 'server' helpful: http://toolmantim.com/articles/setting_up_a_new_remote_git_repository.
And there is alwas the 'official' slightly nerdy documemtation at http://kernel.org/pub/software/scm/git-core/docs/

(GUI-)Tools

If you installed git with macports you might as well install tig, which is quite a nice CLI git browser. I also like gitX and there is SmartGit, which is also free for non-commercial use. When using git you obviously want to have a look at github; if you are not developing open source projects trac might be a 'poor mans github alternative' with the git plugin. I also really quite like the Git Bundle for TextMate. EGit/JGit are clearly worth having a look out for for those of you, who earn there money in Java land. You can find information on how to setup FileMerge.app for diffing and merging here and here

Kommentare:

Senden Sie einen Kommentar:
  • HTML Syntax: Eingeschaltet