Do I have to 'git add' a file each time it gets committed?
问题 I've used Mercurial before but plan on switching to Git in the near future. All of the tutorials I've seen that explain how Git works show that files are added to the stage ('git add') before each commit, regardless of whether they have been tracked before. Mercurial also has a command that works in a similar way ('hg add'), but from what I remember, you only need to do 'add' once. For example, the steps for a new repository look something like this: hg init hg add . hg commit "Initial commit