Skip to content

Instantly share code, notes, and snippets.

@mayconvm
Created December 23, 2019 09:24
Show Gist options
  • Select an option

  • Save mayconvm/8ab39c4f4bb498fb1af69e9b5284b1a5 to your computer and use it in GitHub Desktop.

Select an option

Save mayconvm/8ab39c4f4bb498fb1af69e9b5284b1a5 to your computer and use it in GitHub Desktop.
tmp_ssh_host=$(echo $(git remote get-url origin) | sed 's/https:\/\/bitbucket.org\//[email protected]:/g')
git remote remove origin && git remote add origin $tmp_ssh_host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment