4

If I tell git to ignore x amount of files and never add them to the repository, will those files also make it into the svn:ignore property? And if so, how can I keep .gitignore local to only my local git repository?

EDIT Sorry about the duplicate, I searched on here and couldn't find anything on it.

codewario
  • 19,553
  • 20
  • 90
  • 159

3 Answers3

2

No, git will not do anything with svn:ignore.

From the documentation:

We ignore all SVN properties except svn:executable. Any unhandled properties are logged to $GIT_DIR/svn//unhandled.log

Also this other StackOverflow question is very similar.

Community
  • 1
  • 1
vcsjones
  • 138,677
  • 31
  • 291
  • 286
1

If you want the .gitignore local to your repo, don't commit it.

Similar question: How can you indicate files to ignore in svn when using git and the git-svn bridge

Community
  • 1
  • 1
Andy
  • 44,610
  • 13
  • 70
  • 69
0

git-svn does neither .gitignore — svn:ignore, nor git attributes — svn properties conversion.

You may consider using SubGit instead. It does properly handle ignore, properties, merge-tracking data, etc. Among other things it works on a server-side, so one can use any Git client available to send changes to Subversion repository.

See documentation and comparison with git-svn.

vadishev
  • 2,979
  • 20
  • 28