Web Niraj
  • Facebook
  • Flickr
  • Github
  • Linkedin
  • Twitter
  • YouTube
Online portfolio, code examples and developer blog
  • About
  • Contact
  • Portfolio
  • WordPress
Search the site...
  • Home
  • Blog
  • Tagging in SVN

Tagging in SVN

0

Tagging code in SVN is a good way to easily create a backup of code, while keeping the SVN history intact. I use this approach often when updating a app to a major new version (e.g. updating an app from v1.0 to v2.0).

After each version of the app is completed, a tag of that version is created using the command:

svn cp https://svn.yourdomain.com/repo/trunk/project https://svn.yourdomain.com/repo/tags/project/v1.0 -m 'Tag of v1.0'

The -m flag lets you define a message for the commit.

If I even need to load up a previous version of an add, I can just checkout the tagged version from SVN, rather than rolling back the trunk version.

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

StackExchange / StackOverflow

profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

PSN Profile

Tags

Amazon Web Services Android Android 4.4 KitKat Android 5.0 Lollipop Apache API Application Backup Bug Command Line Cordova Example Facebook Facebook Graph API Facebook PHP SDK 4.0 Facebook Social Plugins Fan Page Flash Geolocation Google Nexus 5 Google Nexus One Hacking HTML5 Image Manipulation iOS iPhone JavaScript jQuery Laravel 5 Linux NodeJS Parse PDF PHP Plugin Portfolio Review Security Server SSH SSL Sysadmin Tutorial WordPress WordPress Plugins
© 2011-2022 Niraj Shah
  • Blog
  • Portfolio
  • WordPress
  • About Me
  • Contact Me
  • Privacy Policy
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Privacy Policy