-
Notifications
You must be signed in to change notification settings - Fork 28
`lex gitlab` "Mirror"
For internal development, we wanted a private repository. GitHub doesn't allow accessibility levels to change between branches or forks, so to have something completely private, I've mirrored this repository as of commit 96bd498d881f32b5c64d50c65d5cc13ef21c854f to AER's internal Gitlab server lex-gitlab
with:
% pwd
/rd47/scratch/RC/LBLRTM
% git remote -v
origin [email protected]:AER-RC/LBLRTM.git (fetch)
origin [email protected]:AER-RC/LBLRTM.git (push)
% git remote add mirror [email protected]:RC/lblrtm.git
% git push -u mirror --all
% git push -u mirror --tags
note: i have not used the Gitlab-recommended (and much simpler) web interface to mirror. i was not successful with that initially.
Since LBLRTM has submodules associated with it, and those submodules are publicly available in GitHub, and .gitmodules
does not specify a URL (I had to do this to allow SSH and HTTPS cloning), the submodule update is a little clunky. It requires a clone of each submodule after cloning the entire repository:
git clone [email protected]:RC/lblrtm.git lblrtm-mirror # NO RECURSIVE KEYWORD
cd lblrtm-mirror
rmdir aer_rt_utils cross-sections
git clone [email protected]:AER-RC/aer_rt_utils.git
git clone [email protected]:AER-RC/cross-sections.git
git checkout v12.11
note: the --recursive
keyword is not used here. it can be, but the clone will return an error after checking out the core LBL code.
also note we are NOT working with the master
branch. users should checkout the the latest version of LBL as of this writing, which is v12.11
then for developing:
git branch your_branch
git checkout your_branch
... # develop
git commit -a -m 'initial commit to my branch'
git push -u origin master