Source control with mysql

I was learning the altering or dropping views lesson for mySQL and saved my code but I don’t know how to put it under source control. Moshe says to do that but doesn’t say how.