I have my local git repo that and I want to attach it to a remote git repo in a way that the remote will be like a read only version of the local git repo and will present everything in the local git repository automaticlly, without the need to push from local to remote. Meaning, if I add a new file in the local repo I will be able see the change immedietly in my remote repo before I commited or push.
I tried git hooks, but it seems that none of them fits. Actually the action I need to do is on every file that is removed or added to my local git folder to run this set of commands: "git add <file_name> ; git commit -m "auto commit" ; git push"
what is the best way to implement this solution?
thank you!