Created
          May 4, 2011 21:59 
        
      - 
      
- 
        Save benzittlau/956122 to your computer and use it in GitHub Desktop. 
    Remove all *.swp files from a git repository
  
        
  
    
      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
    
  
  
    
  | git ls-files | grep '\.swp$' | xargs git rm | 
Mad!
I tried to add the argument --cached like that:
git ls-files | grep '\.Rproj$' | xargs git rm --cached
It did not work
Thank You !!
This worked perfectly, thanks!
Thank You.!
Thanks
Wow amazing code
Thanks
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
If you get a little prompt about forcing a deletion:
git ls-files | grep '\.swp$' | xargs git rm -fThank you!