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?
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?
Commit puts your changes into the repository.
Update gets the latest version from the repository.
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.
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
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.
Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.
This is very very basic SVN stuff. Read the SVN book, or at least the chapter about fundamental concepts and basic usage.
Update means: "take all the new stuff in the repository and apply them in my working copy".
Commit means: "take all the changes I've made in my working copy and apply them in the repository"
© 2022 - 2024 — McMap. All rights reserved.