Created
          August 12, 2013 20:19 
        
      - 
      
 - 
        
Save caiges/6214747 to your computer and use it in GitHub Desktop.  
    Rename git branches.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Stolen from http://sebgoo.blogspot.com/2012/04/git-rename-branch-local-and-remote.html | |
| #rename local branch | |
| git branch -m old-branch-name new-branch-name | |
| #delete remote branch with old name | |
| git push origin :old-branch-name | |
| #create remote renamed branch | |
| git push origin new-branch-name | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment