Difference between revisions of "Migration to gitlab"

From ElphelWiki
Jump to: navigation, search
(Created page with "==Switch from github to gitlab== cd elphel393 git remote -v (make sure it's not https://git.elphel.com/Elphel/elphel393.git) git remote set-url origin https://git.elphel.c...")
 
(Working copy: projects.json)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Switch from github to gitlab==
+
==Switch from github (hosted by GitHub) to gitlab (hosted by Elphel)==
  
 
  cd elphel393
 
  cd elphel393
  git remote -v (make sure it's not https://git.elphel.com/Elphel/elphel393.git)
+
  git remote -v (make sure it's not https://git.elphel.com/Elphel/elphel393.git already)
 
  git remote set-url origin https://git.elphel.com/Elphel/elphel393.git
 
  git remote set-url origin https://git.elphel.com/Elphel/elphel393.git
 
  git pull
 
  git pull
Line 14: Line 14:
 
  git clone https://git.elphel.com/Elphel/elphel393.git
 
  git clone https://git.elphel.com/Elphel/elphel393.git
 
  ./setup.py
 
  ./setup.py
 +
 +
==Working copy: ''projects.json''==
 +
* not part of the repo
 +
* created from ''projects-default.json''
 +
* edit this file and replace all entries ''https://git.elphel.com/Elphel'' with ''git@git.elphel.com:Elphel'' to use ''ssh'' access instead of the ''https'' if desired. Then re-run ''setup.sh'' to apply the changes.

Latest revision as of 17:58, 19 March 2017

Switch from github (hosted by GitHub) to gitlab (hosted by Elphel)

cd elphel393
git remote -v (make sure it's not https://git.elphel.com/Elphel/elphel393.git already)
git remote set-url origin https://git.elphel.com/Elphel/elphel393.git
git pull

# if projects.json is still there:
rm projects.json
./setup.py (it already has ability to change remote server)

Clean installation

git clone https://git.elphel.com/Elphel/elphel393.git
./setup.py

Working copy: projects.json

  • not part of the repo
  • created from projects-default.json
  • edit this file and replace all entries https://git.elphel.com/Elphel with git@git.elphel.com:Elphel to use ssh access instead of the https if desired. Then re-run setup.sh to apply the changes.