开发者

Add all not tracked files at once

$ hg status

M ...
M ...
M ...
? ...
? ...
? ...
开发者_运维百科

I need to add all not tracked (? marked) files. Is it possible? I can do "hg add *" but I will get many messages unwanted 'file already tracked'.


Just use hg add with no *.

When no files are given, it adds all untracked files, that is, all files with ? in front of the output of hg status.

Files that are ignored because of .hgignore will not be added by hg add without filenames.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜