If you are developing a modern web-based application, chances are you:
- Need to integrate with services that are not completely under your control (or that reside in a different “origin”).
- Have been confronted by this error message in your browser’s console:
Every time I need to integrate a web app with some external service or some server-side API I have no complete control over, I bump into this error. Google has not yet provided me with a concise description of the problem or an overview of alternatives to perform Cross-Domain requests, so this post will serve as a personal future reference.
View original post 1,918 more words
So, this is a ‘Tutorialeto’ to help you rename your GitHub branches when suddenly your Program Manager asks you to change the names as per her standards(I know you hate that 😛 ).
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
The following commands will help you accomplish the same. Enjoy!