2008年5月17日 星期六

GIT 教學

http://www.bitsun.com/documents/gittutorcn.htm
http://www.qweruiop.org/nchcrails/posts/49


git-cvsimport
http://docs.moodle.org/en/Development:Tracking_Moodle_CVS_with_git
http://www.blogger.com/profile/06114951663056205324

git vedio
http://git.or.cz/gitwiki/GitDocumentation

#update repositroy from cvs to git
git-cvsimport -C ../../cmds.git/
git-clone ssh://git@172.21.46.131/pub/cmds.git
#log
git-log --stat
git-log --pretty=format:"%cd %cn%n%s" --stat


------------------------------------
My favorite commands.

#change git ssh repository URL , ex: login account
cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://git@172.21.46.131/pub/cgi.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master

#git diff
git-diff HEAD^ public.c

沒有留言: