2016年12月11日 星期日

不懂git bash 打槍槍

寫在這裡防止忘記

裝好git後
準備好repo檔案
https://github.com/esrlabs/git-repo

首先呢要sync東西下來,假設你有一個資料夾在D:/ggininder

git bash中(要開Run as administrator)



cd /D/ggininder/

mkdir ~/bin
curl https://raw.githubusercontent.com/esrlabs/git-repo/stable/repo > ~/bin/repo
curl https://raw.githubusercontent.com/esrlabs/git-repo/stable/repo.cmd > ~/bin/repo.cmd

這時候資料夾裡就有.repo資料夾了,可以開始init跟sync

repo init -u ssh://[gerrit account]@192.168.1.1:5566/biggg_project -g common,all –q 

repo sync


沒有留言:

張貼留言