blob: 33fdfb2a8c72caaac74e3e319646f97de2b762fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
---
tags:
- git
---
This is where `git rm` comes in: If we add `--cached` it removes a file from the git repository (but it will stay in the working directory).
```bash
$ echo debug.log >> .gitignore
$ git rm --cached debug.log
rm 'debug.log'
$ git commit -m "Start ignoring debug.log"
```
|