2016-06-01 11:49:01 0 Comments Git Boy.Lee

git clone command demo

{ Basic Command }

git clone https://yiilib.com/demo/demo.git --depth 1
git clone ssh://yiilib.com/demo/demo.git --depth 1

no need username and password

--depth 1 for clone depth, usually for non-dev environment, like online server, we don't download no need history data.


{ Adv Command }

git clone https://lee@yiilib.com/demo/demo.git --depth 1
git clone ssh://lee@yiilib.com/demo/demo.git --depth 1

need username and password

https mode will ask you password after command

ssh mode can direct store ssh key on server