Arthur Yakovlev Arthur Yakovlev - 1 year ago 238
Git Question

I have error when push/pull git

I am created my exists project from local files. But this project exists in git repository. And now i need commit changes in project and pull/push his, but git don't know what is repository i have master or origin.
This is error message:

fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.


Answer Source

If you initially cloned your repository then:

git push origin master

If you are wanting to push local files to an empty repository you created on github, then:

git remote add origin

You have to have a connection established to communicate properly. Here is a more detailed answer to help.

Here is a good Git tutorial site.

EDIT: "You push your local repository to the remote repository using the git push command after first establishing a relationship between the two with the git remote add command. If you visit your Github repository, it will show you the URL to use for pushing. You'll first enter something like:

git remote add origin "

Replace with the URL from the repository. The URL is located on the right side bar, titled "SSH clone URL".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download