I need to know if there is a way to migrate my code from CVS source control to Git?
If yes, what about my history of commits?
I've used recently (2016) reposurgeon of Eric Raymond to import a CVS repo from sourceforge to git. I was very pleasantly surprised and it worked very well. After past experiences with cvs2svn and other tools, I recommend without hesitation reposurgeon for this kind of tasks.
Eric has posted a straightforward migration guide here