2010年3月3日 星期三

git+svn

  1. http://google-opensource.blogspot.com/2008/05/develop-with-git-on-google-code-project.html
  2. http://mkl-note.blogspot.com/2008/12/learning-git.html
  3. http://nvie.com/git-model
  4. http://marklodato.github.com/visual-git-guide/
  5. http://code.google.com/p/msysgit/downloads/list (git on windows, msysgit)

ls不能显示中文目录

解 决办法:在git/git-completion.bash 中增加一行:
alias ls='ls --show-control-chars --color=auto'


git commit不能提交中文注释
解决办法:修改git/inputrc中对应的行:

set output-meta on
set convert-meta off


git log无法显示中文注释
解决办法:在git/profile中增加一行:

git add的时候,中文的文件名会显示成乱码,解决方法是

git config core.quotepath false
export LESSCHARSET=iso8859

old mode 100755 new mode 100644
让git忽略掉文件权限检查:
git config --add core.filemode false

ref: http://hi.baidu.com/billdkj


git archive:
git archive --format=tar --prefix=/u_test_prefix/ u_test > /tmp/u_test_fn.tar
u_test : is commit.

沒有留言:

張貼留言

使用 google 的 reCAPTCHA 驗證碼, 總算可以輕鬆留言了。

我實在受不了 spam 了, 又不想讓大家的眼睛花掉, 只好放棄匿名留言。這是沒辦法中的辦法了。留言的朋友需要有 google 帳號。