git

  • git config color.ui true : 콘솔에서 git output을 컬러로 출력하기
  • git config format.pretty oneline : 로그에서 커밋 1개당 1라인만 표시하기
  • git add -i : 인터렉티브 방식으로 파일 추가하기
  • gitk

hg serve와 같은 기능 사용하기
http://stackoverflow.com/questions/377213/git-serve-i-would-like-it-that-simple

Reference

필수 configuration

git config –global user.name “name”
git config –global user.email “e-mail”

유용한 configuration – git config –global 명령으로 설정

git config –global diff.tool vimdiff
git config –global difftool.prompt false
git config –global alias.vimdiff difftool
git config –global alias.unstage ‘reset HEAD’
git config –global alias.last ‘log -1 HEAD’
git config –global alias.st status
git config –global alias.ci commit
git config –global alias.br branch
git config –global alias.co checkout
git config –global alias.df diff
git config –global alias.dc ‘diff –cached’
git config –global alias.lol ‘log –graph –decorate –pretty oneline –abbrev-commit’
git config –global alias.lola ‘log –graph –decorate –pretty oneline –abbrev-commit –all’
git config –global alias.ls ls-files
git config –global alias.ign ‘ls-files -o -i –exclude-standard’
git config –global alias.lg ‘log –graph –pretty format:?Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset?–abbrev-commit –date relatve’
git config –global merge.tool vimdiff
git config –global color.diff auto
git config –global color.branch auto
git config –global color.interactive auto
git config –global color.status auto
git config –global color.ui auto
git config –global color.diff.meta ‘yellow bold’
git config –global color.diff.frag ‘magenta bold’
git config –global color.diff.old ‘red bold’
git config –global color.diff.new ‘green bold’
git config –global color.status.added yellow
git config –global color.status.changed green
git config –global color.status.untracked cyan
git config –global core.repositoryformatversion 0
git config –global core.filemode true
git config –global core.bare false
git config –global core.logallrefupdates true
git config –global core.ignorecase true

유용한 툴들
tig

vim을 mergetool로 사용하기

git mergetool -t vimdiff

http://cheat.errtheblog.com/s/git

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s