LoginSignup
1
1

More than 5 years have passed since last update.

svn:ignore から .gitignore を生成するRubyスクリプト

Last updated at Posted at 2013-02-25

svnだとignore設定を一覧しにくかったりするのでそういう時にも使う。

Gist: svnignore2gitignore.rb

使い方

$ cd ~/Documents/tortoisesvn
$ svnignore2gitignore.rb > .gitignore

出力例

.tx
Desktop.ini
MYBUILD
Tools
bin
cov-int
default.build.user
default.user
gpgpassphrase.txt
obj
signinfo.txt
tools
version.build
src/AsyncFramework/*.user
doc/xsl/es/userconfig.xml
ext/openssl/*.bat
ext/openssl/*.bak
ext/openssl/Makefile
ext/openssl/MINFO
ext/openssl/inc32
.
.

Oneliner to convert svn:ignore into .gitignore が、一つのディレクトリに複数のignore設定がある時に上手く動かなかったので作った。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1