I have just clone repo an then make one commit add it and was trying to push it - but have this error:
Any ideas how can I fix this evill?
I had the same problem with my first GitHub repository just now. In my case, the problem was related to having enabled two-factor authentication. I had GitHub make an authentication token since the command line tools aren't aware of two-factor authentication.
The problem was that double-clicking the token to select it somehow selected a space to its left as well, resulting in me copying an invalid code. Carefully click-dragging from one end of the token to the other worked.
If you want to push to https://github.com/AntonDerenivsky/lado, you should use the credentials of AntonDerenivsky.
Using 'fresa' would only work if fresa has been declared as collaborator for AntonDerenivsky/lado repo.
Or you need to fork that repo, and use:
git remote rename origin upstream
git remote add origin https://fresa@github.com/fresa/lado
git push -u origin master
If AntonDerenivsky is your gitHub account, the the login to use is 'AntonDerenivsky', not 'fresa'.
If you have changed your password, you can use
git remote show origin
This will prompt for a username and password wherein you can enter your credentials.
Regarding two factor authentication - after re-enabling 2fa I had to delete and re-add the remote endpoint for git to successfully pull.
# ERROR: Repository not found.
# fatal: Could not read from remote repository.
# copy and paste ssh destination git@github.com:user/repo.git
git remote -v
git remote remove origin
git remote add origin git@github.com:user/repo.git