TOWER — the most powerful Git client for Mac
Creating a New Repository
Committing Local Changes
, an empty repository is created in the current
Inspecting your current local changes is very similar in both systems.
folder of your local hard drive. The
command then marks
the current contents of your project directory for the next (and in
$ svn status
this case: first) commit.
$ svn diff | less
$ svnadmin create /path/to/repo
$ git status
$ svn import /path/to/local/project http://
$ git diff
trunk -m "Initial import"
In case you’ve created new files or deleted old ones, you should tell
$ git init
Git with the
commands. You’ll be pleased
$ git add .
to hear that it’s safe to inform Git after deleting or moving a file
$ git commit -m "Initial commit"
or even a folder. This means you should feel free to delete or move
even complete directory structures in your favorite editor, IDE, or
file browser and later confirm the action with the
Cloning a Remote Repository
Getting a copy of the project from a remote server seems almost
$ svn add <file>
identical. However, after performing
, you have a
$ svn rm <file>
full-blown local repository on your machine, not just a working
$ git add <file>
$ git rm <file>
$ svn checkout
In its simplest form, committing can feel just like in Subversion.
option, you tell Git to simply add all current local
$ git clone
changes to the commit.
$ svn commit -m "message"
$ git commit -a -m "message"
To inspect historic commits, both systems use the
Keep in mind, however, that
doesn’t need to ask the
Although short-circuiting Git’s staging area like this can make
remote server for data: your project’s history is already at hand,
sense, you’ll quickly begin to love it once you understand how
saved in your local repository.
valuable it is:
You can add selected files to the staging area and even limit this to
$ svn log | less
certain parts (or even lines) of a file by specifying the
This allows you to craft your commits in a very granular way and
$ git log
only add changes that belong to the same topic in a single commit.
$ git add <file1> <file2>
$ git add -p <file3>
30-day free trial available at
the most powerful Git client for Mac