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
create .gitignore file in your repository and you want to track only c files and ignore all other files then add the following lines to it....
* !*.c
'*' will ignore all files
and ! will negate files be to ignored....so here we are asking git not to ignore c files....