On Sat, Sep 26, 2015 at 09:51:12PM +0300, Alex Radulescu wrote:
> Hi,
> 
> This command is not working. Any advice?
> 
> Alex:testGit Alex$ git commit -a -m 'made a change'
> 
> On branch v1.0
> 
> Untracked files:
> 
> new_branch.txt
> 
> nothing added to commit but untracked files present

git commit -a does not add untracked files.  Such files might be build
by-products or such and you haven't told Git to track them, so it
doesn't.

From git-commit(1):
  -a, --all
      Tell the command to automatically stage files that have been
      modified and deleted, but new files you have not told Git about
      are not affected.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: PGP signature

Reply via email to