Version 7 vs 8
Version 7 vs 8
Edits
Edits
- Edit by aubort, Version 8
- Apr 14 2016 12:45
- Edit by • rezzonico, Version 7
- Apr 10 2016 22:31
« Previous Change | Next Change » |
Edit Older Version 7... | Edit Older Version 8... |
Content Changes
Content Changes
Migration from GIT, master branch only
============================
This method can be used when your repo only has one master branch.
1. Add a [[ https://c4science.ch/settings/panel/ssh/ | public ssh key ]] to your account (or a [[ https://c4science.ch/settings/panel/vcspassword/ | VCS password ]])
2. [[ https://c4science.ch/w/c4science/repo/ | Create repo in c4science ]]
3. Clone repo from other GIT (if you don't already have a local copy) and enter repo
```
git clone https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git
cd scitas-benchmarks
```
4. Switch the remote origin
```
git remote rename origin old-origin
git remote add origin ssh://git@c4science.ch:2222/diffusion/77/scitas-benchmarks.git
git checkout master
git push -u origin master
git remote rm old-origin
```
Migration from GIT, master branch only
============================
This method can be used when your repo only has one master branch.
1. Add a [[ https://c4science.ch/settings/panel/ssh/ | public ssh key ]] to your account (or a [[ https://c4science.ch/settings/panel/vcspassword/ | VCS password ]])
2. [[ https://c4science.ch/w/c4science/repo/ | Create repo in c4science ]]
3. Clone repo from other GIT (if you don't already have a local copy) and enter repo
```
git clone https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git
cd scitas-benchmarks
```
4. Switch the remote origin
```
git remote rename origin old-origin
git remote add origin ssh://git@c4science.ch:2222/diffusion/77/scitas-benchmarks.git
git remote rm old-origin
```
5. Push everything to c4science and set upstream to origin
```
git push --all --set-upstream origin
git push --tag
```
Migration from GIT, master branch only
============================
This method can be used when your repo only has one master branch.
1. Add a [[ https://c4science.ch/settings/panel/ssh/ | public ssh key ]] to your account (or a [[ https://c4science.ch/settings/panel/vcspassword/ | VCS password ]])
2. [[ https://c4science.ch/w/c4science/repo/ | Create repo in c4science ]]
3. Clone repo from other GIT (if you don't already have a local copy) and enter repo
```
git clone https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git
cd scitas-benchmarks
```
4. Switch the remote origin
```
git remote rename origin old-origin
git remote add origin ssh://git@c4science.ch:2222/diffusion/77/scitas-benchmarks.git
git checkout masterremote rm old-origin
```
5. Push everything to c4science and set upstream to origin
```
git push -u origin master-all --set-upstream origin
git remote rm old-originpush --tag
```
c4science · Help