I am looking into adding some files to .git
repo directory, and push
them to the upstream
without tracking/commiting them.
Example:
.git/information.txt
After I do a commit
, I add text to information.txt
, and then push
.
When I clone
/fork I would like to still have this file in .git
.
What I basically want is to have files that are not tracked, and the content in the upstream is updated with the existing content in the local repo when git push
is issued.
I guess the way to do it is to hack the git-init
and add whatever I want, and see what git push
/clone
/fork does to the .git
folder, and keep the new files and send them to upstream. But I am thinking that maybe there is another way.
Is there a config option that I am missing?