交互式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 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
的建议。
unison的文档提到可以提供与某些路径匹配的条件,并执行诸如首先或最后列出所有匹配文件之类的操作。该文档没有讨论使用 、 或 等命令对此类条件A
的&
操作|
。其他文档来源,如wiki和github 项目似乎也没有提供这方面的帮助。
我的问题是有人可以解释如何使用命令行“匹配”命令吗?
我也想知道类似的事情:
命令行文档中的“匹配”是指文档中提到的相同“匹配条件”吗?如果不是,如何产生一个匹配变化的条件?如何在命令行中选择匹配条件并对其进行操作?