Last active
          October 14, 2022 15:33 
        
      - 
      
- 
        Save douglascayers/8543195d4bae7cfd20cb02bc0916211f to your computer and use it in GitHub Desktop. 
    Merge current branch into another then switch back
  
        
  
    
      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
    
  
  
    
  | export HEAD=$(git branch --show-current) && \ | |
| git checkout -B staging origin/staging && \ | |
| git merge --no-ff $HEAD && \ | |
| git push && \ | |
| git checkout $HEAD | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment