Git problems

As a newcomer to Github I’ve run into a little trouble and thought the RoR community might be able to help.

Whenever I try to add an item to a repository, it switches the file path, to that of another project, and states 'fatal: Could not chdir to ‘file path…/’.

Any ideas as to what’s going on?