linux上如何解决svn命令行提交代码忽略目录的问题

发布者: xiaozhimn

如果出现如下问题

svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is zh_CN.UTF-8
svn: warning: please check that your locale name is correct
commit (ci): Send changes from your working copy to the repository.

解决办法

sudo vi /etc/profile
加入一行:
export LC_ALL=C
source /etc/profile

如果要忽略某个文件夹的提交

svn propset svn:ignore 'node_modules' ./

svn ci -m 'ignore a directory called "node_modules".'

以上就可以解决svn忽略文件夹提交的问题了

0赞