[doc]: update sonic-buildimage clone instructions (#1278)

* [doc]: update sonic-buildimage clone instructions
This commit is contained in:
lguohan 2018-01-03 21:45:08 -08:00 committed by GitHub
parent 39a99e1a07
commit 45bf130803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,12 +31,17 @@ Please refer to [SONiC roadmap](https://github.com/Azure/SONiC/wiki/Sonic-Roadma
## Clone or fetch the code repository with all git submodules
To clone the code repository recursively, assuming git version 1.9 or newer:
git clone --recursive https://github.com/Azure/sonic-buildimage.git
git clone https://github.com/Azure/sonic-buildimage.git
## Usage
To build SONiC installer image and docker images, run the following commands:
cd sonic-buildimage
# (Optional) Checkout a specific branch. By default, it uses master branch
git checkout [branch_name]
# Execute make init once after cloning the repo, or fetched remote repo with submodule updates
make init