git - put files under version control - how to untrack them and ignore -


I've added files under version control. Now I need to remove them from version control and ignore them in my project. . Is it just putting those files inside in .gitignore or do I have to delete them first? What is the correct methodology?

If you want to remove the file from your git while leaving the file in your work directory, Rm - cached file is required, then commit. If you add the file to .gitignore , then the current version of the file will be in GIT.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -