I’ve done a few articles in the past on different tasks in svn and git, but I have a little cheat sheet of sorts I’ve been using for awhile for Subversion on Mac OS X and thought I would share it. Before you get started, check your version. I use 2.0 but I seem to remember all of these are about the same as they were previously: svn --version To get started, Subversion uses a repository to store projects. Each client needs a repository and these should be on direct attached drives. The repository hosts a Berkeley database a folder per project you check out, or import. To create a…
-
-
Basic Git Usage
Previously we looked at installing Git on Mac OS X. Now let’s take a look at using it. The first step is to add a new local git repository that looks to a remote repository. In the following example I’m going to add a local repository called custom-safari based on the git repository at packages/custom-safari on git.krypted.com. git remote add custom-safari git://https://krypted.com//packages/custom-safari.git Next make sure you’re using the latest from the repository: git pull Then checkout from the master git branch: git checkout -b custom-safari/master Now pull the files you’ve checked out: git pull custom-safari master Now you can do your work. Edit the files, wok on them and when…