rellermeyer / course_os

CS 439 course OS
BSD 3-Clause "New" or "Revised" License
38 stars 26 forks source link

.gitignore file needed #24

Closed brandong954 closed 10 years ago

brandong954 commented 10 years ago

Looks like users could possibly push a lot of unnecessary .o and image files. I recommend we create a .gitignore file to prevent such files from being unnecessarily added to the repo. Here are a few files that I think we should add to .gitignore:

course_os.img kernel.img start.o startup.o uart.o

and possibly these, but I'm not sure yet kernel.map kernel.bin kernel.elf ../toolchain/target/ ../u-boot/u-boot-2010.03.tar.bz2 ../u-boot/u-boot-2010.03/

stv8 commented 10 years ago

I agree we should make one. One question though, are these files machine dependent? For example if we didn't put them in a gitignore and someone with a mac pulled from the repo and got all of our .o files and disk image will it not work for them?

brandong954 commented 10 years ago

correct, they would need to recompile, and possibly have to delete all the junk .o files. I'm pretty sure all those files listed above could be ignored since they are not initially apart of the repo. Setting it up now.

rellermeyer commented 10 years ago

It's machine independent and I would go broad and simply add .o and .img .map .elf Rule of thumb: (almost) never commit binary files or files that get built, only commit the sources.

brandong954 commented 10 years ago

Ok, I've gone ahead and added a global .gitignore file to the repo. Should be good now.