Visual studio project cannot commit in github [fixed]

I faced this issue when I was trying to submit a solution with an MDF file, simply you cannot do any copy/move/delete to a solution while a database connection is open, to solve this you have to close the solution, or close the connections from server explorer or to close SQL service from windows services, after that you can commit.