I added a class library project to a web application solution. I get Error Message "An error occurred. Detailed message: No changes; nothing to commit." I use git repository on visual studio online.
I have seen this error in VS2013 when the file or folder would be ignored by GIT. You can confirm this by trying the add from the command line.
For example, the following shows this for the "bin" folder of the TestGit project:
$ git add bin
The following paths are ignored by one of your .gitignore files:
TestGit/bin
Use -f if you really want to add them.
fatal: no files added
If you confirm that is the issue, you will need to check .gitignore, .git/info/exclude, etc. and fix the settings. You can find which file to using git check-ignore as follows:
$ git check-ignore -v bin
.gitignore:190:bin bin
This example shows that line 190 of the .gitignore file needs is causing the bin folder to be ignored. Fixing this allow will allow that folder (or files in it) to be added.
Note: I added "bin" to .gitignore for this example; it is not part of the .gitignore file created by Visual Studio.
*Update: I didn't even need to add the line. The .gitignore added by Visual Studio already excludes the "bin" folder. See github/gitignore/VisualStudio.gitignore for even more detail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With