blob: 2c06c41d07a63c87761af918563fbfc61505c619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
tags:
- git
---
[[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"
```
|