Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 348 Bytes

make_backup_of_untracked_files.md

File metadata and controls

6 lines (5 loc) · 348 Bytes

Make backup of untracked files

Most of the time, it’s safe to delete all the untracked files. But many times, there is a situation wherein you want to delete, but also to create a backup of your untracked files just in case you need them later.

git ls-files --others --exclude-standard -z | xargs -0 tar rvf ~/backup-untracked.zip