Skip to content

Instantly share code, notes, and snippets.

@pedrojimenez
Created September 22, 2016 10:57
Show Gist options
  • Select an option

  • Save pedrojimenez/70f5296da1a8179e31cbc5e4799fb6a9 to your computer and use it in GitHub Desktop.

Select an option

Save pedrojimenez/70f5296da1a8179e31cbc5e4799fb6a9 to your computer and use it in GitHub Desktop.
Lordpiotr GIT Gist
## Change remote origin
git remote set-url origin git://new.url.here
git remote set-url origin git@comicteca.plan.io:comicteca-comicteca.comicteca_new.git
## Rename a Branch:
git branch -m old_branch new_branch
git push origin :old_branch
git push --set-upstream origin new_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment