If you have two-factor authentication enabled in GitHub settings, make sure to use personal access token instead of a password.
personal access token