I find myself migrating from code versioner, previously I was using Mecurial SCM and now I will be using GIT, the problem is that Mercurial creates the file .hgignore
to host the list of ignored files but when trying to rename it to keep its equivalent in git and having .gitignore
it sends me the error :
You must type a file name
Is there a way to rename the file .hgignore
and change it to .gitignore
?
Note: I'm hoping to find a solution that doesn't involve installing any tools or developing any kind of application and the file system is Windows.
The easiest way to change it is by changing the file name and adding a
.
at the end.Instead of putting
.gitignore
it should be put.gitignore.
and the file system itself will remove the last point.Original answer obtained from Stack Overflow