Hi Chris,

Sure, you can fix older commits. 

The easiest is if you just want to insert a single LICENSE file in the root 
folder of your repository. Simply make a commit where you add this file, 
and then move it towards the beginning of history using interactive 

However, if you need to insert a header license in each file (I'm not a 
lawyer, so I don't know if this is necessary, but I've seen a lot of 
projects do this), you need to edit each commit where you added new files. 
You can also do this using interactive rebase, although it will be more 
work (depending on the amount of files, of course).

In order to find with commits you added new files, use git log --name-status, 
and look for entries with the *A prefix -* this means files were added in 
the commit.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to