2014-06-26 16:48:13 +00:00
|
|
|
|
---
|
|
|
|
|
layout: post
|
|
|
|
|
title: "git rm --cached madness"
|
2016-02-26 15:19:42 +00:00
|
|
|
|
date: 2013-01-14T21:38:00Z
|
2014-06-26 16:48:13 +00:00
|
|
|
|
tags: [development, git]
|
|
|
|
|
permalink: /blog/2013/1/14/git-rm-cached-madness
|
|
|
|
|
published: true
|
|
|
|
|
author:
|
|
|
|
|
name: Gergely Polonkai
|
|
|
|
|
email: gergely@polonkai.eu
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
I have recently learned about `git rm --cached`. It’s a very good tool, as it
|
|
|
|
|
removes a file from tracking, without removing your local copy of it. However,
|
|
|
|
|
be warned that if you use `git pull` in another working copy, the file will be
|
|
|
|
|
removed from there! If you accidentally put the configuration of a production
|
|
|
|
|
project, and remove it on your dev machine, it can cause a lot of trouble ;)
|