Difference between URL FETCH and URL PUSH

Asked

Viewed 113 times

1

Hello !

Consulting my remote origin via command

git remote show origin

I got the return:

  $ git remote show origin
  * remote origin
  Fetch URL: [email protected]:/var/git/Projeto.git
  Push  URL: [email protected]:/var/git/Projeto.git

What is the reason for this distinction between two Urls (Fetch and Push)? These two Urls could be different ? If so, what is the practical use of this ?

  • 2

    fetch is read-related, ex: download, while push is write-related,ex:save changes, links could be different (using the command set-url for example) but the documentation recommends that they be the same. Practical utility? Honestly I never saw, I’ll wait for the answers because I was also curious

No answers

Browser other questions tagged

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