From 036a63de04acb6be1c272af60d78cb334373d1d4 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Fri, 10 Jul 2020 11:05:11 +0100 Subject: [PATCH] Add instructions for migrating other projects to 'main' --- Git-Using-Main-Branch.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Git-Using-Main-Branch.md b/Git-Using-Main-Branch.md index b4020c5..4f82fb9 100644 --- a/Git-Using-Main-Branch.md +++ b/Git-Using-Main-Branch.md @@ -24,3 +24,13 @@ These steps are: See [Contributing.md](https://github.com/EDCD/EDMarketConnector/blob/main/Contributing.md) for an outline of the other branches we use. + +## Migrating your own project from 'master' to 'main' + +We followed the instructions at https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx +, which boil down to: + +1. `git checkout master` +1. `git fetch origin` +1. `git branch -m master main` +1. `git push -u origin main`