How can I make git accept a self signed certificate?

How to fix the 'SSL certificate problem: self signed certificate' issue on 'git clone'