简体   繁体   中英

What does this questionmark (mercurial) mean?

It seems like a simple question, but why does this file have a question mark in front of it after I have run the commands "Hg push" and "Hg commit". How do I get this new file to upload to the mercurial server? Why did my mercurial commit leave behind a file?

    @Xinl ➜  projectfolder  hg status
    ? data/openend_coding/soundex_unaidedlogopay1.py

Quote from hg help status (hg's help is quite extensive and always worth a look!):

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)

Before mercurial tracks a file you have to tell it to actually do so by means of hg add . Untracked files are never committed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM