In case you are using openSuse Linux the easiest way authenticate github on openSuse is with
git-credential-oauth
Just install it using sudo zypper install git-credential-oauth
make github pull, push or clone and it will show you a link to make the authentication on github