11

While trying to use locally Git at my workplace where we use SVN I was searching a lot for how to set everything up. From what I found it seems there are two approaches to the problem, either:

git svn clone URL

or

git svn init URL
git svn fetch

Do they differ? If yes then how? If not then why two ways for the same? Or is this just an edge case where they do the same?

1 Answer 1

10

They are the same. Git has many high-level commands which call other more low-level commands. The high-level commands are oriented towards the user to make everyday tasks easy and the low-level commands do a single thing in terms of git's data structures. In git terminology they are called porcelain and plumbing commands.

Cloning is what a user wants to do and this includes initing a repository and fetching commits from an SVN repository which are totally different repository tasks.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .