Created
          August 23, 2023 11:24 
        
      - 
      
 - 
        
Save tommyip/9fece7f3b3c5fa33bee46ed26c01a4a6 to your computer and use it in GitHub Desktop.  
    The missing Git stash commands
  
        
  
    
      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
    
  
  
    
  | # Pass in stash message as the first argument | |
| function git-stash-unstaged --description "Only stash unstaged changes" | |
| git commit -m "git-stash-unstaged" | |
| git stash push -u -m $argv[1] | |
| git reset --soft HEAD^ | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment