Use git:: prefix before the url of the git repo and suffix it with ?ref=<branch> for a specific branch
For easy copy paste
module "example" {
source = "git::https://github.com/cloudposse/terraform-aws-ec2-client-vpn.git?ref=master"
# ...
}