I think you need to give more details about why you have this crazy set-up. What are you trying to achieve?
You can git add
the file but also add it to .gitignore
. But I don't know if that really solves your problem because it isn't clear what your problem is.
Gemini has a 1 million token limit. Also instead of just giving it the entire source you can give it a list of files and the ability to query them (e.g. to read an entire file, or search for usages/definitions of terms etc.).