Notizen zur Migration Bitbucket auf Gitea

Für eine Migration von Bitbucket nach Gitea kann der eingebaute Migrationsassistent genutzt werden.

  1. in Gitea: ggf. neue Organisation anlegen

  2. in Gitea: Organisation auswählen

  3. in Gitea: Neue Migration

    • von git

    • Bitbucket URL, Username und PW eingeben

    • Haken bei "Mirror" entfernen

    • starten, warten, freuen :-)

Für jede Entwicklungsumgebung:

Umschalten des upstream git-Reposities
~$ cd my_projekt/
~/my_projekt$ git remote remove origin

~/my_projekt$ git remote add origin https://SERVER/gitea/KUNDE/my_projekt.git
~/my_projekt$ git pull
Password for 'https://SERVER':
remote: Enumerating objects: ..., done.
remote: Counting objects: 100% (.../...), done.
remote: Compressing objects: 100% (.../...), done.
remote: Total ... (delta ...), reused ... (delta ...), pack-reused 0
Receiving objects: 100% (.../...), ...... KiB | ....... KiB/s, done.
Resolving deltas: 100% (.../...), completed with ... local objects.
From https://SERVER/gitea/KUNDE/my_projekt
* [new branch]      demosite          -> origin/demosite
* [new branch]      development       -> origin/development
* [new branch]      hotfix            -> origin/hotfix
* [new branch]      main              -> origin/main
* [new branch]      production        -> origin/production
* [new branch]      staging           -> origin/staging
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> main

~/my_projekt$  git branch --set-upstream-to=origin/main main
branch 'main' set up to track 'origin/main'.

~/my_projekt$ git pull
Password for 'https://SERVER':
Updating 794be3f..f66091a
Fast-forward
...