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?
You can use git-cvsimport to import your CVS repository into Git. By default, this will check out every revision, giving you a relatively complete history.
Depending on your operating system, you may need to install support for this separately. For example, on an Ubuntu machine you would need the git-cvs package.
This answer goes into more detail.