SVN to Git Branch/Tag/Trunk

Oliver Spryn picture Oliver Spryn · Oct 30, 2012 · Viewed 17.1k times · Source

I am making the leap from SVN to Git (though, my respect for SVN will still hold) and I had a few questions for some SVN to Git terminology. In SVN, many repositories are setup like this:

- trunk  : The place where all of the main development occurs
- tag    : Storing versions of major releases or important milestones
- branch : Where smaller "branch" development occurs as to not conflict with the main development occurring in the trunk, then is later merged into the trunk

What are the standard convention names for branch/tag/trunk in Git?

Thank you for your time.

Answer

Dmitry Pavlenko picture Dmitry Pavlenko · Oct 30, 2012
  • SVN trunk --- Git master (refs/heads/master)
  • SVN branches/* --- Git branches (refs/heads/*)
  • SVN tags/* --- Git tags (refs/tags/*)