1

I know it is possible to ignore a directory or file from git diff using git diff !(example), as shown here.

Is this possible when using git commit -v?

Community
  • 1
  • 1
RichLitt
  • 352
  • 1
  • 3
  • 13
  • I am not entirely sure I follow. Unless you use `-a`, `git commit` will apply to files in the index (added via `git add`). What part of `git commit -v`don't you want? Can you give an example of files & expected output? – tgo Mar 21 '15 at 15:17
  • I want to not see the verbose comments for any files I have in my build folder, because they're not meaningful to me when I am writing the commit message. – RichLitt Mar 22 '15 at 02:03

1 Answers1

1

As long as they are on the index they will appear on the commit -v message.

You can either add them to .gitignore (but I don't think that is what you want), or manually remove the unwanted comments for each commit.

adrianvlupu
  • 4,188
  • 3
  • 23
  • 29