Does Git Affect SVN?

Imagine I have an SVN repository. I can make changes to it when they are ready.

While I am working on a specific task, I want to track my changes locally. So I thought that maybe I could create a git repository inside the root of the SVN repo.

Then I was able to execute local commits in git and “global commit” (check-in) in SVN when work on a specific problem was completed.

Question: If I do this, can there be problems on the side of SVN?

In theory, they should not, because git will only create a directory .gitin the root and that it. But I want to hear about the problems of people who themselves used this approach.

Note. I want this git locally, only for me (no one even noticed it). Going around the whole company on git is not possible.

+4
source share
1 answer

There should be no problem, provided that:

  • you think your git commit will not sync to SVN sessions.
  • you make sure that SVN ignores the folder .git(with the ignore property)
  • make sure git ignores SVN metadata (at least in the folder .svn)
+5
source

All Articles