I'm using macOS Catalina. No Matter what I try, I get a commit error. I've already tried:
git rm -rf --cached <path-to-file>
Here is me trying to add and then commit:
➜ payments git:(eric/refactorsalfailworker) ✗ git st
On branch eric/refactorsalfailworker
Your branch is up to date with 'origin/eric/refactorsalfailworker'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: pkg/payments-webhooks-worker/helpers-deposit-fail.go
deleted: pkg/payments-webhooks-worker/helpers-deposit.go
modified: pkg/payments-webhooks-worker/helpers-go-routines.go
deleted: pkg/payments-webhooks-worker/helpers-monthly-payment.go
deleted: pkg/payments-webhooks-worker/helpers-mvr.go
no changes added to commit (use "git add" and/or "git commit -a")
➜ payments git:(eric/refactorsalfailworker) ✗ git add .
➜ payments git:(eric/refactorsalfailworker) ✗ git commit -m 'added prev boolean'
stat pkg/payments-webhooks-worker/helpers-deposit-fail.go: no such file or directory
stat pkg/payments-webhooks-worker/helpers-deposit.go: no such file or directory
stat pkg/payments-webhooks-worker/helpers-monthly-payment.go: no such file or directory
stat pkg/payments-webhooks-worker/helpers-mvr.go: no such file or directory
COMMIT FAILED
➜ payments git:(eric/refactorsalfailworker) ✗ git st
On branch eric/refactorsalfailworker
Your branch is up to date with 'origin/eric/refactorsalfailworker'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: pkg/payments-webhooks-worker/helpers-deposit-fail.go
deleted: pkg/payments-webhooks-worker/helpers-deposit.go
modified: pkg/payments-webhooks-worker/helpers-go-routines.go
deleted: pkg/payments-webhooks-worker/helpers-monthly-payment.go
deleted: pkg/payments-webhooks-worker/helpers-mvr.go
The add . is definitely working, but git for some reason just isn't allowing the commit. When I run the rm -rf --cached it says it can't find the file. It tried it with full path and relative path.