My programs generally generate huge output files (~1 GB) which I do not want to be backing up to the git repository. So instead of being able to do
git add
Late to the party, but my solution would be to have a directory for source files and a different directory for executables and program output, something like this:
+ .git
| (...)
+ bin
| my_exe.exe
| my_output.txt
+ src
some_file.c
some_file.h
... and then only add the stuff in src/
to my repository and ignore bin/
entirely.