Tuesday 15 April 2014

version control - Git: removing a file from being versioned, but not deleting it -


I have a file that has been updated in our repository, but it should not have been for logic, file config .py is we have configuj.tpl version instead but configuring actual output for obvious reasons.

What is the correct way to shutdown this file without deleting the version from the operating directory? Apart from this, it is also to ensure that the next time the repo is not stored and unstarred in the production.

I've already added the file to .gitignore.

Use the following command to remove it from the repository and place it in the tightgear:

  git rm - -cackaged configuration  

No comments:

Post a Comment