mirror of
https://github.com/cupcakearmy/memoir.git
synced 2024-12-22 16:16:31 +00:00
add git clean
This commit is contained in:
parent
eb63b57ad4
commit
0f172b5c61
17
pages/git/clean.md
Normal file
17
pages/git/clean.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
tags:
|
||||||
|
- git
|
||||||
|
- clean
|
||||||
|
- gitignore
|
||||||
|
- delete
|
||||||
|
---
|
||||||
|
|
||||||
|
# Delete all files mentioned by `.gitignore`
|
||||||
|
|
||||||
|
This command is useful if you want to reset a repository to it's checked out state.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clean -Xdf
|
||||||
|
```
|
||||||
|
|
||||||
|
[Original SO Link](https://unix.stackexchange.com/a/542735)
|
Loading…
Reference in New Issue
Block a user