August 27, 2008
It seems there will be a new option for git-clone, ‘–mirror’. The command line
$ git clone –mirror $URL
is now a short-hand for
$ git clone –bare $URL
$ (cd $(basename $URL) && git remote add –mirror origin $URL)
Refer to http://kerneltrap.org/mailarchive/git/2008/8/2/2793244 about this.
This is extremely useful if you need to check the contents of different branches in […]
Filed under: scm |
Comments (0)
June 5, 2008
the whole story is that I started a project locally and I used git as my SCM. now I’m going to put it into a svn repository with full history but I still want to use git.
normally you should make this decision at the beginning. that means you
git-svn clone http://svn.somewhere.com/myproject
first, then you use […]
Filed under: scm |
Comments (1)
March 24, 2008
像 subversion (svn) 這類集中式的 scm 一定要有網路連線才能 commit ,這是很討厭的一件事情,尤其是很多人都會用 notebook 工作,不見得需要長時間連結網路,或者是並沒興趣修改 svn 上的版本。這時候像老牌的 monotone 或是現在的 git 以及 Mercurial 這種分散式的版本管理系統就很好用。這陣子在改一個 project,他已經有 svn 在 googlecode 上,看來已經很久沒人 maintain. 我當然還不需要 svn write 權限,但是我仍然希望在自己 local 端有版本管理,這樣我如果幹了什麼蠢事才救得回來。
此時 git-svn 這種工具就真的很好用。基本使用方式是
# Clone a repo (like git clone):
git-svn clone http://svn.foo.org/project/trunk
# Enter the newly cloned directory:
[…]
Filed under: scm |
Comments (0)