开发者

Add all not tracked files at once

开发者 https://www.devze.com 2023-01-23 09:30 出处:网络
$ hg status M ... M ... M ... ? ... ? ... ? ... 开发者_运维百科 I need to add all not tracked (? marked) files.Is it possible?
$ 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

精彩评论

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