Recently I ran into a problem: I created a Java package "*.target.*" and git ignored it when I commited the changes. It turned out it was because of this line