I want to commit a hook to my PR which automatically update the submodule whenever someone does a git pull
Following is what is did in my git local repo:
touch .git/hooks/post-rewrite
cd .git/hooks
chmod +x post-rewrite
Next, to the post-rewrite I added the code from here
Now if I do a git pull shouldn't it update the submodule withgit pull` as I am expecting it to? But it doesn't. What is the mistake I am doing?
I've looked through many related links which are there but can't get it to work.
Also if I want to commit it the add post-rewrite file in hooks folder does not enlist under git status. How can I get add, commit & push this into my PR?
