这似乎是一个简单的问题,但为什么在我运行命令“Hg push”和“Hg commit”之后,这个文件前面有一个问号。如何将此新文件上传到mercurial服务器?为什么我的mercurial提交留下了文件?
@Xinl ➜ projectfolder hg status
? data/openend_coding/soundex_unaidedlogopay1.py
答案 0 :(得分:5)
来自hg help status
的引用(hg' s帮助相当广泛,值得一看!):
The codes used to show the status of files are:
M = modified
A = added
R = removed
C = clean
! = missing (deleted by non-hg command, but still tracked)
? = not tracked
I = ignored
= origin of the previous file (with --copies)
在mercurial跟踪文件之前,您必须通过hg add
告诉它实际执行此操作。永远不会提交未跟踪的文件。