If I was cloning a public repository I might use:
git clone https://github.com/strafe/project.git
but if the repository was private then I’d use:
git clone https://strafe:mygithubpassword@github.com/strafe/project.git
Please note if you use 2FA to secure your GitHub account then you’ll need to use a personal access token instead of your password.