How do I identify existing repositories on my github?

Asked

Viewed 2,688 times

0

I’m doing a basic course on github and I just got passed that push has to be done for "origin master". But when I do the command on the terminal (command line) I get the following message:

Macbook-Pro-de-Julio:Git course juliobarreto$ git [email protected]:juliocezarjr/curso-git.git github1 Cloning into 'github1'... ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote Repository.

Please make sure you have the correct access Rights and the Repository exists.

Note: I don’t know if it has any relation, but for the course, I was supposed to clone the repository using an SSH Key, but it didn’t work. I could only clone the repository through the URL.

  • 1

    By the way, I think you’re not interested in Github here (service that provides git project hosting + social media issues + maybe CI?), but git itself. Knowing the repositories on Github is all about opening your profile, repositories.

  • My problem happens when I try to clone a github repository. So my interest in github is to the extent that I can’t clone a github repository.

1 answer

1

Execute the command:

git remote -v

The relation is the URL’s to which it is possible to push. There must be at least one and by default it is named Origin. See if the URL matches the one sending the push.

You should also have access to the remote repository, if you’re trying to push a Reset from your Github account, the remote local should point to the Reset URL on Github, the same one you used to clone.

  • The "git remote -v" command does not perform anything on my terminal. I am doing something wrong?

  • Are you in the repository folder? If there is no return, it is because you do not have a registered remote

Browser other questions tagged

You are not signed in. Login or sign up in order to post.