I had this project with a lot .c files in source directory,then I make the project, there is .o files inside of the project, I also want to push these files to repository,so instead of add each .o which is possible but…,how to add .o files easily?
Share
Putting aside the fact, that this is just a terrible idea, you can add them as any other file:
Of course instead of
git add *.oyou can usegit add */*.oor evenfind -name *.o | while read x; do git add $x; done