What is the difference between "git push" and "git Sync"?

Asked

Viewed 2,286 times

7

After I make one git commit to save the changes to my local repository, I can upload them to the remote repository using both the command git push how much using the command git sync. What’s the difference between these two Git commands?

  • As renanzin said, a good summary I think is that git Sync will make your local and cloud repository equal I started git a little while ago and if it’s like my case I use Github they have a very fast client to use https://desktop.github.com

  • which version of git has Sync, in my says that there is no such command!?

1 answer

12


git push: Upload the contents from the local repository to the remote

git sync: First executes a git pull that downloads the contents of the remote repository and updates the location, after which the git push which does what was mentioned above.

Answer about git pull

Browser other questions tagged

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