My question is simple : Why is the parent directory
changing it's commit message with the latest commit message I did on any sub-directory
or any file
inside that parent directory?
Is it possible for the parent folder to have the exact same commit message that I made once, forever?
What happening is - If I commit any file, then every ancestor (parent folder) also changes its commit message with that latest commit I just made.
This is parent
folder. (see its commit message)
This is the folder inside that parent folder (inside client)
This is the folder inside src
folder
And this is the file inside hooks
which I committed and added the message to.
So the Path goes like this: client
> src
> hooks
> request.js
and I commit request.js
. I see that every ancestor folder of it, changed its commit message to this commit message. I don't want that. I want that commit message to be applied only on request.js
, not any other folder or file.
How can I stop this behavior? Or am I doing something wrong (commiting in wrong way)?