I've edited my gitignore to ignore some files (like .gradle, .idea) but how can i delete this files from github? https://github.com/hakkikaancaliskan/NetHesap.git
            Asked
            
        
        
            Active
            
        
            Viewed 188 times
        
    1
            
            
        - 
                    1Delete the file, push the commit, then add to .gitignore. If you want to remove it from history completely, easier to just start over sometimes. – Mad Physicist Jun 26 '18 at 19:06
- 
                    2[Remove a file from a Git repository without deleting it from the local filesystem](https://stackoverflow.com/q/1143796/7976758). [How to remove/delete a file from commit history](https://stackoverflow.com/q/2100907/7976758). – phd Jun 26 '18 at 19:11
1 Answers
1
            I suggest you make it in a different order:
- Delete files from disk physically
- Add deleted files into index: git add . -A
- git commit -m'files deleted'
- Edit .gitignorenow
 
    
    
        pyotruk
        
- 81
- 1
- 3
