Is it possible to delete commit history in github repository inside web browser (without using git).
            Asked
            
        
        
            Active
            
        
            Viewed 2,525 times
        
    2
            
            
        - 
                    Yes you can follow this [link][1] and do all the step from your github repository [1]: https://stackoverflow.com/a/26000395/6947332 – naib khan Jul 23 '19 at 04:27
1 Answers
0
            
            
        You can delete files or delete branch from the GitHub Web GUI, but you cannot delete individual commits.
You could try an artificial pull request followed by a merge and squash, but that might not fit your particular need.
 
    
    
        VonC
        
- 1,262,500
- 529
- 4,410
- 5,250
- 
                    Would the artificial pull request followed by a merge and squash delete the commits and remove my stars, forks and watchers? – Jake Leroy Jul 23 '19 at 05:24
- 
                    @JakeLeroy it depends what you actually mean by deleting the commits: stars and watches are associated to a repository, not commits: do you need to actually delete a repository? – VonC Jul 23 '19 at 06:06
- 
                    I was wondering if deleting commits would effect the repositories stars, watches and forks. (I'm talking about commits to a repository) – Jake Leroy Jul 23 '19 at 16:35
- 
                    
