顯示具有 clone 標籤的文章。 顯示所有文章
顯示具有 clone 標籤的文章。 顯示所有文章

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

2012年3月19日 星期一

use ssh login with username

語法就是: $ git clone ssh://charles@servername/~/mysourcecode .. 可以用 ~ 就不用寫一堆 /home/charles/...

另外也可以指定 port,一樣,寫 sername:port

ref:
http://stackoverflow.com/questions/2433049/git-clone-using-ssh-cant-find-repository