Skip to content

Instantly share code, notes, and snippets.

@firefirer1983
Created February 1, 2021 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firefirer1983/3c0ec9288c76f07e9673e8bbbcd9dfb8 to your computer and use it in GitHub Desktop.
Save firefirer1983/3c0ec9288c76f07e9673e8bbbcd9dfb8 to your computer and use it in GitHub Desktop.
git使用记录

git使用记录

迁移项目

git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
git remote rm origin
git remote add origin git@github.com:firefirer1983/pytrade-sfa.git
git push --all origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment