Updated README with migration instructions
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
KawaiiPunk 2020-06-25 19:59:22 +01:00
parent bd46a6aafa
commit d0a3ce52a9
Signed by: kawaiipunk
GPG Key ID: EDE939629F5C1A6A

View File

@ -3,3 +3,18 @@
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/git.autonomic.zone/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/git.autonomic.zone) [![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/git.autonomic.zone/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/git.autonomic.zone)
> https://git.autonomic.zone > https://git.autonomic.zone
## Migrating local repos
Recently we moved our Gitea instance to use [docker-swarm](https://git.autonomic.zone/autonomic-cooperative/git.autonomic.zone/commit/36eed2a709cd72183e54ab79be74e044f5614ea8). This requires changing the origin on your repos hosted here. You may need to use a combination of the following commands.
```
git pull
git remote rm origin && git remote add origin ssh://git@git.autonomic.zone:2222/autonomic-cooperative/git.autonomic.zone.git
git branch --set-upstream-to=origin/master master
git pull
```
You may also need to run a command similar to this to remove the previous server fingerprint from your `known_hosts` file or do it manually:
`ssh-keygen -f "/home/user/.ssh/known_hosts" -R "[git.autonomic.zone]:222"`