diff --git a/docs/quickstart.md b/docs/quickstart.md index 5f2de3f2b366bab6e3dabfab255ff65e68089735..7f31084bdcdffd68d76c3763933591d37dafdf6c 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -7,12 +7,28 @@ Start the container in lxslc7 (OS: CentOS7): $ /cvmfs/container.ihep.ac.cn/bin/hep_container shell SL6 ``` -## Get code using git +## Manage code using git +Fork the CEPCSW into your own repo. For an example: +* https://github.com/*USERNAME*/CEPCSW + +Get the source code from your own repo: ``` -$ git clone git@github.com:cepc/CEPCSW.git +$ git clone git@github.com:USERNAME/CEPCSW.git $ cd CEPCSW ``` + +Add the upstream repo: +``` +$ git remote add cepc https://github.com/cepc/CEPCSW.git +``` + +Sync and merge the upstream repo: +``` +$ git remote update +$ git merge cepc/master +``` + ## Setup and build ```