banner



How To Use Svn In Windows

TortoiseSVN is a popular Apache Subversion client for Windows, implemented as a Microsoft Windows shell extension. Every bit information technology isn't integrated into a specific IDE it tin be used with a range of development tools; for example, information technology can be integrated into Microsoft Visual Studio using a third-party plugin such equally VisualSVN. The key benefits of using TortoiseSVN include:

  1. Icon overlays, which let you to run across the status of every versioned file and folder at a glance.
  2. Piece of cake access to all Subversion commands though a TortoiseSVN sub-menu that's automatically added to the Windows context menu.
  3. Windows integration, which allows you to piece of work with tools yous're already familiar with.
  4. Context-aware sub-menu — bachelor commands are filtered based on the selected file or folder. You volition not see any commands you cannot use within the current context.
  5. Powerful commit dialog — with integrated spellchecker, machine completion capabilities, and the ability to double-click on a modified file to open the diff plan.

TortoiseSVN besides comes with some useful tools for version control:

  • TortoiseMerge — a diff / merge tool that displays the changes fabricated to item files.
  • TortoiseBlame — displays who is responsible for a particular modify, and the log message for the corresponding commit.
  • TortoiseIDiff — displays the changes made to epitome files, as it's non possible to use a standard file diff tool for images. TortoiseIDiff can brandish 2 images side-past-side, and display images composite over one another.

Getting Started with TortoiseSVN

TortoiseSVN is GNU General Public License software that you tin download for costless from wandisco.com. It is available in both 32-bit and 64-bit flavors. To download TortoiseSVN, but double click the installer file and follow the onscreen instructions. When prompted, click Install.

The beginning step when using TortoiseSVN, is to download a local working copy of your repository. Offset by creating a directory where you will shop the working copy. Right-click on the binder and the Explorer context carte will appear, along with some new TortoiseSVN commands. Select SVN Checkout…'

Getting Started with TortoiseSVN

This will open the checkout dialog:

Getting Started with TortoiseSVN

From here you tin set the following properties:

  • URL of Repository — the URL of the repository yous wish to check out. (If you're using uberSVN, yous tin copy/paste the repository URL from the repository screen.)

    Getting Started with TortoiseSVN

  • Checkout directory — the location on your local file system where the checkout will occur. By default, it will exist the location you correct-clicked, only you can modify this manually.
  • Checkout depth — an pick to limit what yous cheque out. This is useful if you're changing 1 directory of a very big repository.
  • Revision — get the latest version of the repository. You lot tin also select a specific revision, which is useful if you need to roll dorsum to a version before particular changes were made.

When you've finished with these options, yous're prepare to perform the checkout. Click Ok. You'll now run across the progress of the checkout. All the files and the folders that are included in the checkout will exist logged.

Getting Started with TortoiseSVN

Making and Committing Your Changes with TortoiseSVN

At present you have a working copy on your computer; you are free to work on your own, local version of the project. When you accept finished making your changes, the modified files/directories will exist shown with the red assertion mark overlay to indicate that they have been modified since they were terminal checked out or updated.

Getting Started with TortoiseSVN

Before you commit whatsoever changes, it's a good exercise to ensure your working copy is up to appointment with the repository. To update your working copy, select the desired files or directories, right-click them and select Update from the TortoiseSVN sub-carte. A new screen will open up displaying the update'south progress. Changes performed past other team members will be merged into your files, but whatever changes you may have performed on the aforementioned files volition be maintained.

Getting Started with TortoiseSVN

Now that you've ensured your working copy is up to date, it'southward fourth dimension to add together your changes to the repository. Select the desired files or directories and striking the SVN Commit… command.

Getting Started with TortoiseSVN

SVN Commit… will open the commit dialog. From hither, you can perform a number of actions:

  • Launch the external diff tool, which displays every change made to the file, past double clicking on any modified file.

    Getting Started with TortoiseSVN

  • Add a log message from the commit dialog. Information technology's a good practice to leave a log message, as they tin be useful if issues arise later.

    Getting Started with TortoiseSVN

  • Keep a item file from existence committed past unchecking that file. Hitting Ok to commit your changes to the repository.

Subconscious TortoiseSVN Features

You are now familiar with TortoiseSVN'south context card, but did you know that if yous hold down the shift central, y'all tin can access an extended context card? This menu has some additional options:

Unequal with URL

A big part of project development is pinpointing what has changed. TortoiseSVN has a play a joke on for uncovering exactly what has changed on the torso for users working on a branch and what has inverse on a specific branch for users working on the torso. When you hold downwards the Shift push and select TortoiseSVN, you will notice a new Unequal with URL option has appeared.

Getting Started with TortoiseSVN

Select Unequal with URL. In the following dialog, specify the URL in the repository you wish to compare with your local file. This will bring up the TortoiseMerge box, allowing you to see the changes.

Delete Unversioned Items

Another new option that appears when y'all hold downwardly Shift is Delete unversioned items. Information technology's possible to gear up the TortoiseSVN ignore list to exclude all unversioned items, but if you wish to purge all these ignored items and produce a clean build, this command comes in handy. Selecting Delete unversioned items launches a dialog list all the unversioned files in the working re-create, where you tin select which files to delete. Note that this command only moves files to the recycle bin, so they can exist recovered if yous make a mistake.

Getting Started with TortoiseSVN

Intermission Lock

Although Subversion was designed to utilise copying and merging rather than locking, there are some scenarios where locking is advisable (e.g. whenever "unmergeable" files such every bit images are involved.) Locking with TortoiseSVN is a thing of clicking the file that requires locking, and selecting Get Lock… from the TortoiseSVN sub-menu. Information technology's as well a good exercise to exit a annotate explaining why you take decided to lock that file.

If you tin add locks, at some betoken y'all will need to release them. To release a lock manually with TortoiseSVN, select the locked file, printing Shift and and then select the new Break Lock pick from the TortoiseSVN sub-menu. TortoiseSVN will then contact the repository and release the lock. Y'all can also use this command on a folder to release all the locks recursively.

Getting Started with TortoiseSVN

Further Reading

You lot now know the bones TortoiseSVN workcycle, and some additional "subconscious" commands! If you lot want to learn more almost TortoiseSVN, the official docs are a great source of information.

Source: https://www.developer.com/microsoft/tortoisesvn-beginners-guide/

Posted by: neeleyhaddide.blogspot.com

0 Response to "How To Use Svn In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel