Git: Difference between revisions
Add git clean |
|||
Line 82: | Line 82: | ||
*.7z filter=lfs diff=lfs merge=lfs -text | *.7z filter=lfs diff=lfs merge=lfs -text | ||
</pre> | </pre> | ||
==Clean== | |||
[https://www.atlassian.com/git/tutorials/undoing-changes/git-clean Atlassian Reference] | |||
Use <code>git clean</code> to delete untracked files.<br> | |||
Add <code>-x</code> to also delete gitignore'd files. | |||
<syntaxhighlight lang="bash"> | |||
# Force delete any untracked files and directories | |||
git clean -fd | |||
</syntaxhighlight> | |||
==Git Large File Storage (LFS)== | ==Git Large File Storage (LFS)== | ||
[https://github.com/git-lfs/git-lfs/wiki/Tutorial Reference] | [https://github.com/git-lfs/git-lfs/wiki/Tutorial Reference] |