Subversion(SVN)和静态库(.a文件)的兼容性?

Fra*_*scu 9 svn iphone xcode commit ios

我无法将.a文件(静态库)添加到我的存储库中.为什么?

有没有办法"强迫"SVN接受它们(至少作为静态文件......)?

pyf*_*unc 10

svn:ignore属性包含某些Subversion操作将忽略的文件模式列表.

你还有一个全局忽略的配置文件.它是以空格分隔的globs列表,用于描述文件和目录的名称

svn status,svn addsvn import命令也忽略匹配列表中的文件.

要覆盖某个实例,请使用--no-ignore命令行标志:

>>>>svn help add
usage: add PATH...

Valid options:
  --targets ARG            : pass contents of file ARG as additional args
  -N [--non-recursive]     : obsolete; try --depth=files or --depth=immediates
  --depth ARG              : limit operation by depth ARG ('empty', 'files',
                            'immediates', or 'infinity')
  -q [--quiet]             : print nothing, or only summary information
  --force                  : force operation to run
  --no-ignore              : disregard default and svn:ignore property ignores
  --auto-props             : enable automatic properties
  --no-auto-props          : disable automatic properties
Run Code Online (Sandbox Code Playgroud)


zel*_*lus 6

确保您的问题是由SVN忽略配置引起的.使用`svn status'将丢失'*.a'文件,而'svn status --no-ignore'将显示前面带有问号的文件.

在主目录中打开Subversion配置文件:

~/.subversion/config
Run Code Online (Sandbox Code Playgroud)

搜索'global-ignores'部分:

global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store
Run Code Online (Sandbox Code Playgroud)

从被忽略的文件列表中删除*.a.