I am trying to push my changes to the github through source tree and the .cashe files gives error
cache/Keywords/β¦__Scripts__ExistUser-Purchasing__with Co-borrower__2-Duplex__001-Two Units__002-Second Home__Without VA__013-Exist-Duplex-Two-Primary-WithoutVA-Just getting started phase purchase without time entry__Script1624356096517
fatal: pathspec β.cache/Keywords/β¦__Scripts__ExistUser-Purchasing__with Co-borrower__2-Duplex__001-Two Units__002-Second Home__Without VA__013-Exist-Duplex-Two-Primary-WithoutVA-Just getting started phase purchase without time entry__Script1624356096517β did not match any files
You should not store the .cache in the Git repository at all.
Therefore
change .gitignore file
You should add a line in the .gitignore file in the project directory :
.cache/
remove already committed files out of the repository
Possibly you have already committed some files in the .cache. Changing the .gitignore is not enough. You need to remove them out of the repository. Do the following operation in the command line:
$ cd <your project directory>
$ git rm --cached .cache
You should be able to do equivalent operation in SourceTree but I donβt know.