Say I have a file system that includes:
file1.java
file2.java
file3.java
file4.java
And I just finished a commit that has betterfile.java that is supposed to replace file1,2,3 and 4. So I am about to commit betterfile.java and now I have no use for the other files. So how do I delete them from the next commit. How could I remove all of the other files (file1, file2, etc.) from the commit I’m about to do, but still keep them historically?
1 Answer