Hi, an interesting solution! However I would like to know if there was any reason for you not to use GiT from beginning on? There are numerous solutions already in Internet concerning exactly these issues.


You can also remove files from the repository based on your .gitignore without deleting them from the local file system :

git rm --cached `git ls-files -i -X .gitignore`
Or, alternatively, on Windows Powershell:

git rm --cached $(git ls-files -i -X .gitignore)


Usually many code editors today are using a git plugin that you can use. Try to find if there is an intergrated Git versioning system in your code editor. Personally would reccoment for Mac using the Visual Studio Code which has git integrated

Subscribe to #git