日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

SVN ignores

發布時間:2023/12/13 综合教程 22 生活家
生活随笔 收集整理的這篇文章主要介紹了 SVN ignores 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在windows下面用SVN 用命令行不是很方便,dos很煩的,所以一般都會用tourist svn

mac下牛人都喜歡直接敲命令行,比如svn co http:// 等等。。

不過為了看得清楚,有必要也搞個可視化工具,比如Cornerstone

Cornerstone里面也有自己的ignore配置,如果不勾選使用全局ignore的話,是不會讀取

~/.subversion/config

配置文件的,它自己的配置在Preferences > Subversion > General > Global Ignores

想避免不同的ignore文件造成的不一致,可以在finder中直接看隱藏的目錄直接去編輯~/.subversion/config

$ defaults write com.apple.finder AppleShowAllFiles -bool true

但是兩處地方config都設了,還是無法ignore某個拖下來了的文件是為什么呢?

找了一圈終于找到一段話(出處鏈接找不到了):

Ignored Files

By default, all files in a working copy are expected to be placed under version control. As a result, all unversioned files (i.e. those not yet placed under version control by being added to the working copy) are displayed with a special status which is designed to attract your attention.

However you may not want to place some files under version control at all. Typically, such files include the products of build processes such as object files emitted by compilers and executables created by linkers.

By default, these files will be continuously brought to your attention by being marked as unversioned. This is distracting and makes it more difficult to isolate the interesting changes made to your working copy.

The solution is to tell Cornerstone that you want to ignore these items. As a result the items are not displayed by default in the working copy.

Cornerstone can only ignore unversioned files. Once a file has been added to a working copy it can no longer be ignored.

Global Ignore List

The global ignore list is a Subversion option which defines files and file types that should automatically be ignored. The list can contain both filenames such as .DS_Store and patterns (or globs) such as *.o and *.pbxuser.

Files and folders which match items in this list will automatically be ignored when encountered in a working copy.

The global ignore list can be edited in the Subversion section of Cornerstone's preferences window.

The global ignore list is a global preference which will affect all Subversion applications.

上面框里的黑字表示,只有沒有進入版本的文件才能奏效。。。

所以要想無視某些目錄的文件,只有先建repository后,不要下載某些目錄,這樣working copy中就不會有多余的東西了!

所謂ignore只有自己獨有的尚未提交的文件才有效。

總結

以上是生活随笔為你收集整理的SVN ignores的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。