How to stash part of change? #1332
              
                
                  
                  
                    Answered
                  
                  by
                    jesseduffield
                  
              
          
                  
                    
                      lixiaoquan
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         How to achieve what 'git stash -p' does? Scenario: Sometimes I made some changes in a few files and part of it broke something, and to find out the culprit, I'd like to disable/enable part of changes quickly.  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            jesseduffield
          
      
      
        Jun 2, 2021 
      
    
    Replies: 1 comment
-
| 
         The way I do it is to select the files that you want to stash, or even individual lines in files that you want to stash by hitting enter on the file and then using the line-by-line staging mode. Then I press shift+S and select to stash staged files  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        lixiaoquan
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
The way I do it is to select the files that you want to stash, or even individual lines in files that you want to stash by hitting enter on the file and then using the line-by-line staging mode. Then I press shift+S and select to stash staged files