git need to take a backup in zip for Untracked files
I need to take a back up in zip in git for Untracked files for all files need to take
$ git status --short
M .gitignore
?? file 1
?? File 2
....
I need to take a backup
Working on python windows
>Solution :
This Will Help
git status --short | cut -c4- > unstaged_files.txt
tar -czvf unstaged_backup.tar.gz -T unstaged_files.txt