GIT to SVN Quick Start

Installing GIT and getting started

GIT Documentation:

GIT Getting started basics:

GIT for Windows:

Setting up for the first time:

Visual Studio 2012 Tools for Git:

Install VS2012 Update 2:

Install VS Tools for GIT:


This is a quick reference guide for using GIT accessing a Subversion source code repository.

Tools for VS2012: Getting started with git in Visual Studio 2012

Using GIT Bash from context menu:

Clone repo from SVN

git svn clone -s https://url  <local_path>

The first time (takes a long time):

git svn show-ignore > .gitignore
git add .
git commit                  (commits .gitignore)
git svn dcommit             (commits .gitignore to svn for everyone to share)

Show list of branches

git branch -a

Make changes in a branch

git branch <new_branch>      (create branch)
git checkout <new_branch>    (switch)

Add changes/edits

git add <file>           (1 file)
git add .                (all files)
git add --patch          (prompts text changes)


git commit               (commits to current branch)

Merge to master

git checkout master      (switches to master)
git merge <branch>       (merge branch into master and auto commit if no conflicts)
git commit               (if conflicts needed resolving)

Merge to svn

git svn rebase           (update from svn)
git svn dcommit          (commit to svn for all to share)


git checkout <file>      (revert individual file)
git checkout .           (revert all files)
git reset head <file>    (revert if changes have been tracked)
git reset head .         (all files)

References and further help:



Posted in Development, Miscellaneous, Source Repository | Tagged , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre user="" computer="" escaped="">