2012年6月25日 星期一

new project, clone from remote repo with specific name

如果要create 一個 new git,但是要從 remote 拿code,又要指定 remote 的name
(例如 android framework project 有自己 create 的新 project folder,就會需要這樣).

用 git clone 也可以,但是用這樣好像比較合理:

git init git remote add myserver git://..... git pull myserver


ref: http://blog.opsb.co.uk/instant-remote-git-repository-using-ssh