git

2
Mai
2009

Git

Steps I should do next time I set up a development computer:

Install these packages:
Command line tool : git-core
GUI: gitk, gitg, giggle, git-cola
Nice mergetool: kdiff3

Configure name and email address
git config --global user.name 'MyName'
git config --global user.email 'My(AT)EmailAddress'

Eclipse-Plugin
A plugin for Eclipse is available from JGit Homepage or directly from Update-Site
Activate plugin for imported project:
Team->Share Project -> Git -> Next -> Finish

Shortcuts for often used commands
git config --global alias.st 'status'
git config --global alias.ci 'commit'
git config --global alias.co 'checkout'
git config --global alias.df 'diff'
git config --global alias.lg 'log -p'
git config --global alias.br 'branch'

Colored display of branch (in one line)
export PS1='\[\033[00;32m\]\u\[\033[01m\]@\[\033[00;36m\]\h\[\033[01m\]:
\[\033[00;35m\]\w\[\033[00m\]\[\033[01;33m\]`git branch 2>/dev/null|cut -f2 -
d\* -s`\[\033[00m\]\$ '


oder http://gist.github.com/29138
logo

Random Thoughts and Links

Banner

User Status

Du bist nicht angemeldet.

Aktuelle Beiträge

Upgrade HTC Hero to 2.1...
Einfachste Anleitung: http://andreas- lehr.com/blog/archives/229 -T-Mobile-HTC-Hero-unlock. html Kurze...
randomike - 4. Mai, 13:54
Karel Gott ist ein Charaktertyp...
Karel Gott ist ein Charaktertyp mit Humor. Atheismus...
Seba96 - 27. Feb, 17:14
Karel Gott
Atheist Bus Campaign Austria
randomike - 19. Jul, 13:09
Vote for "install cryptsetup...
randomike - 17. Jul, 17:43
Converting Seq[Option[Any]])...
First idea: seq.filter(_.isDefi ned).map(_.get) Second.. .
randomike - 17. Jul, 11:39

Links

RSS Box

News

Suche

 

Status

Online seit 6548 Tagen
Zuletzt aktualisiert: 17. Mai, 21:45

Credits

Web Counter-Modul