What's the difference between Commit and Update?

24,152

Solution 1

Commit puts your changes into the repository.

Update gets the latest version from the repository.

Solution 2

Update gets the latest from the repository onto your workspace.

Commit commits or checks in your changes into the repository.

Best practice is to do an Update first to get the latest so that you can merge the changes and resolve any conflicts with the code on your workspace.

You will be forced to do an update if there are changes in the repository when committing but its quicker to do it before trying to commit.

Solution 3

Commit = Commit/confirm your changes to the repository. Update = Get the latest version/changes from the repository.

When you change a file and want to keep the changes, commit them to the repository.

When you want to get the latest available version/s from the repository, use update to update your local files.

I hope this clear things out for you.

Update is called "Get latest" in TFS/Source Safe if I remember correct...

/Fred

Solution 4

A commit will upload your changed files to the repository and create a revision. Whereas an update will download any revisions from the repository into your local copy.

Solution 5

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.

Share:
24,152
Louis Waweru
Author by

Louis Waweru

I broke keybase. Please don't message me there.

Updated on July 09, 2022

Comments

  • Louis Waweru
    Louis Waweru almost 2 years

    I am new to version control, and am not sure of the differences between using Commit vs Update when using ankhsvn.

    What's the difference between a commit and update? When should I use one verses the other?