Command line 如何为unison cli使用“匹配条件”命令?
交互式unison命令行提供以下帮助:Command line 如何为unison cli使用“匹配条件”命令?,command-line,unison,Command Line,Unison,交互式unison命令行提供以下帮助: Commands: <ret> or f or <spc> follow unison's recommendation (if any) n or j go to the next item p or b or k go back to previous item <del> or <bsp> revert then go back to
Commands:
<ret> or f or <spc> follow unison's recommendation (if any)
n or j go to the next item
p or b or k go back to previous item
<del> or <bsp> revert then go back to previous item
0 go to the start of the list
9 go to the end of the list
5 go forward to the middle of the following items
6 go backward to the middle of the preceding items
R reverse the list of paths
d show differences (curr or match)
x show details (curr or match)
L list all (or matching) following changes tersely
l list all (or matching) following changes with details
A or * match all the following
1 match all the following that propagate from local to saunterblugget
2 match all the following that propagate from saunterblugget to local
C match all the following conflicts
P or = match all the following with only props changes
M match all the following merges
X or ! invert the matching condition
& and the last two matching conditions
| or the last two matching conditions
D or _ delete/pop the active matching condition
U or $ unmatch (select current)
r or u revert to unison's default recommendation (curr or match)
m merge the versions (curr or match)
> or . propagate from from local to saunterblugget (curr or match)
< or , propagate from from saunterblugget to local (curr or match)
] or " resolve conflicts in favor of the newer (curr or match)
[ or ' resolve conflicts in favor of the older (curr or match)
c resolve conflicts in favor of changed (curr or match)
i invert direction of propagation (curr or match)
/ or : skip (curr or match)
% skip all the following
- skip and discard for this session (curr or match)
+ skip and discard all the following
I ignore this path permanently
E permanently ignore files with this extension
N permanently ignore paths ending with this name
s stop reconciling and go to the proceed menu
g proceed immediately to propagating changes
q exit unison without propagating any changes
对我来说,这意味着可以在命令行上指示unison查找符合某些条件的所有文件并对其执行操作,例如跳过这些文件或遵循unison的建议
for unison提到,可以提供一个匹配某些路径的条件,并且可以首先或最后列出所有匹配的文件。本文档未讨论使用诸如、&、或|等命令对此类条件的操作。其他文档来源,如和,似乎也没有提供这方面的帮助
我的问题是有人能解释一下如何使用命令行匹配命令吗
我还想知道一些事情,比如:
命令行文档中的匹配是否与文档中提到的匹配条件相同?如果不是,如何产生一个条件来匹配变化?如何选择匹配条件并在命令行上操作它们