Skip to content

Instantly share code, notes, and snippets.

@shumiyao
Created August 15, 2021 08:42
Show Gist options
  • Save shumiyao/39230a9f72eff36f8da296e16f04b5bf to your computer and use it in GitHub Desktop.
Save shumiyao/39230a9f72eff36f8da296e16f04b5bf to your computer and use it in GitHub Desktop.
renaming git branch
cd template-lookbook (in your mac)
git branch -m paywall main;
git fetch origin;
git branch -u origin/main main;
git remote set-head origin -a;
git branch;
git checkout main;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment