Open TechplexEngineer opened 10 months ago
There's no easy way to deal with crazy filenames. With that said, this particular filename appear to work fine when I tried it:
$ git number
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
1 Product-${productVersion} Docker (Build ${buildDate}.${buildNumber}).tar
nothing added to commit but untracked files present (use "git add" to track)
$ git number -c rm 1
rm "Product-\${productVersion} Docker (Build \${buildDate}.\${buildNumber}).tar"
$ git number
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
If you have a crazy file name with bash variable sequences:
Product-${productVersion} Docker (Build ${buildDate}.${buildNumber}).tar
and it shows in git status like this:
And you try to remove it with:
The generated command uses double quotes for the filename. Using single quotes would resolve the issue
Generated Command