Skip to content

Instantly share code, notes, and snippets.

@jamiees2
Created May 18, 2014 20:29
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 jamiees2/6fd9805fb58fc0329c21 to your computer and use it in GitHub Desktop.
Save jamiees2/6fd9805fb58fc0329c21 to your computer and use it in GitHub Desktop.
Set a git repository to its ssh version
git remote set-url origin $(echo "git@bitbucket.org:<TEAM>/$(git remote -v | grep -oh "[^/]*\.git" | head -n1)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment