Skip to content

Instantly share code, notes, and snippets.

@glasslion
Created October 15, 2019 08:13
Show Gist options
  • Save glasslion/c04e9f12aef16697c9d87ee3a6fc7689 to your computer and use it in GitHub Desktop.
Save glasslion/c04e9f12aef16697c9d87ee3a6fc7689 to your computer and use it in GitHub Desktop.
将 repo 转为 git
git remote -v | head -1 |awk '{ print $2 }' | sed 's/https:\/\//git remote set-url origin git@/g' | sed 's/.com\//.com:/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment