git add multiple files at once
问题 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? 回答1: Putting aside the fact, that this is just a terrible idea, you can add them as any other file: git add *.o git commit -m "Committing compiled files, which is bad" Of course instead of git add *.o you can use git add */*.o or even find -name *