You can link the commit with the ticket by including its hash in the commit message, and then mark the ticket as fixed. See here:
https://stackoverflow.com/questions/5761669/how-to-fix-a-tic...