Stop Using git checkout
Git 2.23 introduced two commands that replace the two different jobs git checkout used to do: git switch — change or create…
Moving a Git repository to another (or from one hosting platform like Bitbucket to another like GitHub) while preserving the full history, including all commits and branches, is relatively straightforward.
Here's how you can do it:
git clone --mirror https://bitbucket.org/username/repository.git
Replace username with your Bitbucket username and repository with the name of your repository.
git push --mirror https://github.com/username/repository.git
Replace username with your GitHub username and repository with the name of your new GitHub repository.
git remote set-url origin https://github.com/username/repository.git
Next Step: Rename master branch to main and make it the default
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com