I created a token like described here – https://help.github.com/articles/git-over-http-using-oauth-token. This was ok.
But when I wan to use it like in documentation:
git clone https://mytoken@github.com/mylogin/myrepo.git
I get:
fatal: https://mytoken@github.com/mylogin/myrepo.git/info/refs not found: did you run git update-server-info on the server?
I have a feeling that everything I tried from Github documentation doesn’t work 🙁 I am doing something wrong or the documentation is outdated or doesn’t describe some steps that should be so common that I should already know? 🙂
I am using private repository, not public.
The problem was that I created the token with my repository name in scopes section instead of the word repo.