Skip to content

A small script to be run by developers during a Bitbucket team migration

Notifications You must be signed in to change notification settings

enfogroup/bitbucket-remotes-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Introduction

This repository contains a simple script that can be used when moving repositories from one Bitbucket team to another. This is intended to be run on each developer's machine in order to fix git remotes.

The script is "smart" and will not move update a remote without verifying that it exists. If the migration is done over a longer period of time then this script can be run by developers multiple times.

Make sure you read through the script before running it. :)

How to run

This script should be run a Bash terminal.

  • Update the two variables at the top of the script. SOURCE_TEAM should be set to the name of the source Bitbucket team and DST_TEAM to the destination team
  • Enable execution of the script by running chmod +x fixRemotes.sh
  • Position yourself in your code directory. This should be the directory where you keep your repositories
  • Run the script (./bitbucket-remotes-migration/fixRemotes.sh or similar)
  • Wait. The script will verify that each remote exists which takes time
  • Check output

About

A small script to be run by developers during a Bitbucket team migration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages