mmmm
m" "m mmmm mmm mmm m mm mmm
# # #" "# # " #" # #" " " #
# # # # """m #"""" # m"""#
#mm# ##m#" "mmm" "#mm" # "mm"#
#
2025 Michael argo
# OpseraBitbucketTransfer
Documentation is in progress.
Transfers a list of bitbucket repositories from a file and imports them into github
How to use:
Create a file named repos.txt in the same directory as the script.
Add your Bitbucket repository URLs, one per line, for example:
Copy
https://bitbucket.org/your_workspace/repo1.git
https://bitbucket.org/your_workspace/repo2.git
Run the script.
This will read the URLs from the file and process each repository accordingly.
Authentication:
Create a .env file
BITBUCKET_USERNAME = BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD = BITBUCKET_APP_PASSWORD generated from my settings tokens
GITHUB_USERNAME = GITHUB_USERNAME
GITHUB_TOKEN = GITHUB_TOKEN
Dependencies
import pyfiglet; print(pyfiglet.figlet_format("OPSERA"))
print("Bitbucket to GitHub Repo Migration Tool\n")
import os
import shutil
import logging
import requests
from git import Repo, GitCommandError
from dotenv import load_dotenv
from tqdm import tqdm
from urllib.parse import urlparse, urlunparse
setuprepairllc/OpseraBitbucketTransfer
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
