我知道 汞的忽视是有用的,但我可以说明我所关心的是哪些档案,而只是忽视其他档案,例如。
如果我有<条码>a.c, a.h, a.o, a.exe, a.err in the repo,那么我就能够讲一句话。 汞问题,我只想保留*.c*.h
,而只是无视名单上的所有内容。
我知道 汞的忽视是有用的,但我可以说明我所关心的是哪些档案,而只是忽视其他档案,例如。
如果我有<条码>a.c, a.h, a.o, a.exe, a.err in the repo,那么我就能够讲一句话。 汞问题,我只想保留*.c*.h
,而只是无视名单上的所有内容。
Heh, @vonC是正确的,我不能让它来。 没有什么办法将黑手提变成一个白人名单,而不是一个黑名单。 我以设计的方式收集了这一信息(我当然没有这样做)。
你有几种选择:
<.*
)至.hgignore
, 之后hg 加入
, 您希望得到跟踪—— 添加始终无视的绝对原则
仅打碎和打上适当的黑名单:hg status——no-status——un known >>hgignore
是一个很大的起点。
The bottom line is accidentally tracking something you didn t want tracked is less dangerous a situation than accidentally forgetting to track something you wished was tracked. The former creates a little noise in the your repo, while the latter results in potential data loss.
如果你真心希望获得活力,请在<条码>上添加<>>>*。
[hooks]
precommit.add = hg add $(hg status --unknown --no-status -I **.c -I **.h )
which would automatically add any new .c and .h files when you commit.
I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...
I understand how to merge branches together in git, and I love how easy it makes it. I have a branch that looks like this: project/ |--subproj1/ | |---(files) | |--subproj2/ |---(files) A ...
We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...
I ve met quite a few people lately who says that 3rd party libraries doesn t belong in version control. These people haven t been able to explain to me why they shouldn t yet, so I hoped you guys ...
I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...
I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...
A subversion repository contains the html, latex and man directories that doxygen generates from the source code. Even for small source code changes, new files are being generated with random names ...
Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...