This assumes you have already installed git on the system in use. Creating a new repository with git is very simple. First, using your favorite command line tool, navigate to the directory you want to start using with git. Then, it’s as simple as git init You could also navigate to the parent directory, and… Continue reading Creating a Repository with Git
Category: Version Control
SVN Ignore
Telling SVN to ignore files and directories is crucial to keeping your repository clean, and to prevent it from needlessly bloating. It’s rather simple to tell SVN what you want it to ignore with svn propset/propedit svn:ignore. If you want SVN to ignore all files in a directory, you’d simply enter the following command: svn… Continue reading SVN Ignore
SVN – Creating a New Repository
Creating a new repository with Subversion is simple. Just run the following command on your svn server: svnadmin create /path/to/svn/example.com This will create a new, blank repository with the name “example.com”. Now you will want to do one of two things, import an existing project, or setup the initial directory structure for your new repository.… Continue reading SVN – Creating a New Repository
SVN Copy – Creating a Branch or Tag
Tagging and branching with svn are as simple as using the copy command. For this tutorial, I will assume that your repository has the following structure: /path/to/repository/branches /path/to/repository/tags /path/to/repository/trunk To create a tag of the trunk, run the following command: svn copy http://svn.example.com/path/to/repository/trunk http://svn.example.com/path/to/repository/tags/snapshot-of-trunk To create a tag of your current working copy (assuming you… Continue reading SVN Copy – Creating a Branch or Tag
SVN Merge – Merging a Branch Into the Trunk
So you’ve created a branch for one reason or another, mainly to make sure that the trunk stays stable and doesn’t create chaos for the other developers on your team. You’ve committed several changes to this branch and thoroughly tested them to make sure everything is in working order. Now how do you get them… Continue reading SVN Merge – Merging a Branch Into the Trunk
SVN Switch – Switching to or from the Trunk to a Branch
I recently had to make my first branch on a project using svn. Making a branch is easy enough with svn copy, but where do you go from there? You could check out a fresh copy of the branch from the repository, but you already have the environment setup and working for the trunk copy.… Continue reading SVN Switch – Switching to or from the Trunk to a Branch