I am trying to do the following thing-
I have a folder
config
which I wanted to include to the git repository first time and I could do that without fail.Next, I make a change in
.gitignore
file so that it excludes any changes from that directory by adding
/config/
Next, I commit the change and update the branch
Then I make a change to a file which is under
config
directory but it shows under changed file when I dogit status
Is there a way so that I can include a folder first time and then tell git to ignore from next time onwards.
Any help is highly appreciated.