I was following a guide to ensure your JavaScript and CSS files were always refreshed when you updated them by adding ?v= to the filename. However Windows and git do not like this naming convention but I did manage to name the file audit.css to audit.css?v=1.0 using Cygwin. However as git doesn't like this filename it is stuck in changes to be committed. How can I removed the deleted change for this file? I have tried a few changes from other pages on stackoverflow but they have failed.
Cygwin$ git status
On branch main
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
renamed: audit.css?v=1.0 -> audit.css
Cygwin$ git restore --staged audit.css
Cygwin$ git status
On branch main
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: audit.css?v=1.0
Cygwin$ git restore --staged audit.css?v=1.0
error: invalid path 'audit.css?v=1.0'
Cygwin$ git reset 'audit.css?v=1.0'
error: invalid path 'audit.css?v=1.0'
fatal: make_cache_entry failed for path 'audit.css?v=1.0'