A
A
Automat2017-08-13 06:03:12
git
Automat, 2017-08-13 06:03:12

What is the difference between remote commands?

Set remote turnip:

git remote add pseudo [email protected]:user/project.git

Pull:
git pull
Always an error
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.

Another team
git config remote.origin.url [email protected]:user/project.git

After that, pull always works fine. It is not clear why this is so, why, after remote addgit, this repository cannot be added to the config as a remote one? Why did they come up with these 2 teams and why can't one be dispensed with in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2017-08-13
@nomotrack

In the first you add pseudo, in the second you change origin, that is, overwrite it.
Before git pulldo not forget to make sure git fetch --allthat git at least knows what you are going to pull.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question