What's the difference between push & commit, or pull & update?

Asked by Zearin

I want to set up my laptop (primary machine with all my code) and desktop to sync my code using Bazaar. However, some of Bazaar's flexibility is actually causing me a bit of confusion. :)

Under what circumstances would I want to use push instead of commit? And similarly, under what circumstances would I want to use pull instead of update?

Question information

English Edit question
Bazaar Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
EmmaJane (emmajane) said :

Commit saves changes locally, but doesn't send them anywhere. You would use "push" when you are ready to send your changes to an external repository. Update and pull are a little bit different. That has to do with how you initially downloaded your repository.

You might find the following resources useful:
Answers the pull vs. update question: http://bazaar-vcs.org/FAQ
Mini tutorial: http://doc.bazaar-vcs.org/bzr.dev/en/mini-tutorial/index.html

I've also put some bzr screen casts up on ShowMeDo that have the *very* basics of installing bzr:
Installing bzr: http://showmedo.com/videos/series?name=T0twg3DMW
Making local commits: http://showmedo.com/videos/video?name=3680000&fromSeriesID=368

Revision history for this message
Zearin (zearin) said :

Thanks EmmaJane, that helped…

The wording from the pull vs. update FAQ gives the impression that 'update' is only really used when there is a Central repository setup. Is this true?

(Your screencast was also very well done, by the way! Keep up the great work! =)

Revision history for this message
Best EmmaJane (emmajane) said :

That's right, Zearin. The pairs are like this:
branch + pull (commits are local until you "push" the updates back)
checkout + update (commits are automatically sent to the central repository)

There's more information about checkouts at:

Revision history for this message
Zearin (zearin) said :

Thanks EmmaJane, that solved my question.