Error when attempting to use chef commands

After setting up my workstation I added some files to the git-ignore and svn ignore files, but after that, my chef-client stopped working. Tried reinstalling and 'knife ssl fetch' didn't work either. For the 'knife SUB-COMMAND' or any other chef related commands in PowerShell, the output is as such:

ERROR: CONFIGURATION ERROR:knife is an invalid chef_server_url

Did some extra research and was unable to find anyone else who had this issue, has anyone seen this before?

From the error your config file has an invalid value for chef_server_url.

Double check your configuration in /.chef

Turns out I had a credentials file elsewhere causing chef to use that instead of the config file.