Created
June 30, 2024 07:48
-
-
Save genadyp/f59161121810901d1e43b0871cfc0f5c to your computer and use it in GitHub Desktop.
Revisions
-
genadyp created this gist
Jun 30, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ ## How-to migrate git branch to another name ```console # resource_db_dev -> staging # resource_db_prod -> main # Please run following commands in your local env to update copies. git branch -m resource_db_dev staging git branch -m resource_db_prod main git fetch origin git branch -u origin/main main git branch -u origin/staging staging git remote set-head origin -a ```