File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 44
44
* [ Show all ignored files] ( https://github.com/git-tips/tips#show-all-ignored-files )
45
45
* [ 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 )
46
46
* [ Create new working tree from HEAD state] ( https://github.com/git-tips/tips#create-new-working-tree-from-head-state )
47
+ * [ Forcefully remove untracked files] ( https://github.com/git-tips/tips#forcefully-remove-untracked-files )
48
+ * [ Forcefully remove unstracted directory] ( https://github.com/git-tips/tips#forcefully-remove-unstracted-directory )
47
49
48
50
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
49
51
<!-- @doxie.inject end toc -->
@@ -299,5 +301,15 @@ git worktree add -b <branch-name> <path> <start-point>
299
301
git worktree add --detach < path> HEAD
300
302
```
301
303
304
+ ## Forcefully remove untracked files
305
+ ``` sh
306
+ git clean -f
307
+ ```
308
+
309
+ ## Forcefully remove unstracted directory
310
+ ``` sh
311
+ git clean -f -d
312
+ ```
313
+
302
314
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
303
315
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 169
169
{
170
170
"title" : " Create new working tree from HEAD state" ,
171
171
"tip" : " git worktree add --detach <path> HEAD"
172
+ },
173
+ {
174
+ "title" : " Forcefully remove untracked files" ,
175
+ "tip" : " git clean -f"
176
+ },
177
+ {
178
+ "title" : " Forcefully remove unstracted directory" ,
179
+ "tip" : " git clean -f -d"
172
180
}
173
181
]
You can’t perform that action at this time.
0 commit comments