mirror of
https://github.com/namibia/tips.git
synced 2024-11-14 01:04:12 +00:00
clean untracked files and directory
This commit is contained in:
parent
cab6261a38
commit
fd7f20a395
12
README.md
12
README.md
@ -44,6 +44,8 @@
|
||||
* [Show all ignored files](https://github.com/git-tips/tips#show-all-ignored-files)
|
||||
* [Create new working tree from a repository (git 2.5)](https://github.com/git-tips/tips#create-new-working-tree-from-a-repository-git-25)
|
||||
* [Create new working tree from HEAD state](https://github.com/git-tips/tips#create-new-working-tree-from-head-state)
|
||||
* [Forcefully remove untracked files](https://github.com/git-tips/tips#forcefully-remove-untracked-files)
|
||||
* [Forcefully remove unstracted directory](https://github.com/git-tips/tips#forcefully-remove-unstracted-directory)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -299,5 +301,15 @@ git worktree add -b <branch-name> <path> <start-point>
|
||||
git worktree add --detach <path> HEAD
|
||||
```
|
||||
|
||||
## Forcefully remove untracked files
|
||||
```sh
|
||||
git clean -f
|
||||
```
|
||||
|
||||
## Forcefully remove unstracted directory
|
||||
```sh
|
||||
git clean -f -d
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -169,5 +169,13 @@
|
||||
{
|
||||
"title": "Create new working tree from HEAD state",
|
||||
"tip": "git worktree add --detach <path> HEAD"
|
||||
},
|
||||
{
|
||||
"title": "Forcefully remove untracked files",
|
||||
"tip": "git clean -f"
|
||||
},
|
||||
{
|
||||
"title": "Forcefully remove unstracted directory",
|
||||
"tip": "git clean -f -d"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user