Authentication required for repository https://github.com/.... Each time I enter correct credentials, but still getting the same message.
Are you using your GitHub username and password? If so, GitHub recently disabled that type of authentication. You need to generate a personal access token via gihub settings and use that in place of your password.
Check the GitHub dev blog about the change.
Or you can setup github to authenticate using ssh keys.