November 2017
Beginner
238 pages
5h 58m
English
Just to have a more realistic situation, I will add a tag and a branch to the Subversion repository; in this manner, we will see how to deal with them while in Git.
So, let's get back to adding a new file:
$ cd \Sources\svn\MySvnRepo\trunk $ echo "This is the first file" > svnFile01.txt $ svn add svnFile01.txt $ svn commit -m "Add first file"
Then, tag this snapshot of the repository as v1.0; as you may know, in Subversion, a tag or a branch are copy of a snapshot:
$ svn copy file:///Repos/MySvnRepo/trunk file:///Repos/MySvnRepo/tags/v1.0 -m "Release 1.0"
Once we have a tag, we can even create a branch, supposing we want a place to add bug fixes for the release, v1.0:
$ svn copy file:///Repos/MySvnRepo/trunk file:///Repos/MySvnRepo/branches/v1.x ...
Read now
Unlock full access