How can you git add a new file without staging it?
问题 To use git effectively (and as intended) I make small atomic commits, while I do have longer sessions where I do change not only one thing. Thus, I make heavy use of git add -p . This doesn't work for completely new files, though, because I tend to forget them later on. What I want to do is, tell git that there is a new file, I want it to track, but not stage it : Example: Running git status produces: # On branch my-current-branch # Your branch is ahead of 'origin/my-current-branch' by 2