I have a file which is in my git:
dir1/.thisfile
The content of .thisfile
is "Hello"
Now I want when users do a git clone
they have this file.
After that I want the user to delete the file or edit the content of the file locally but I want this to be ignored by git.
How do I achieve this? I have put the file in my .gitignore but when I delete it or change it it is staged. Gitignore seems only to work for files which aren't in my gitrepo.