1. 程式人生 > >git clone 指定分支 拉代碼

git clone 指定分支 拉代碼

就是 service clas dev spa class 代碼 命令 http

1.git clone 不指定分支

git clone  http://10.1.1.11/service/tmall-service.git

2.git clone 指定分支

git clone -b dev_jk http://10.1.1.11/service/tmall-service.git

命令中:多了一個 -b dev-jk,這個dev_jk就是分支,http://10.1.1.11/service/tmall
-service.git為源碼的倉庫地址

git clone 指定分支 拉代碼