how about something like this: .gitignore src/ src/foo.lpi src/foo.lpr bin/README.txt bin/other.versioned.stuff and in the project settings set the target file name (-o) to ../bin/myprogram