In the .git/hooks
folder I need to make a post-commit.sample
folder and add a post-commit
file to it (and edit a line into it). There was no post-commit
file or post-commit.sample
folder so I used mkdir and touch to create the file.
But when I edited the post-commit file with vim .git/hooks/post-commit.sample/post-commit
it gives me the following error
.git/hooks/post-commit.sample/post-commit" E212: Can't open file for writing
ls -l gives me this
ls -l
total 0
-rw-r--r-- 1 shrey shrey 0 Feb 23 20:43 post-commit
If you could please help me. (I am a newbie ofcourse)