Hacker News new | past | comments | ask | show | jobs | submit login

The save command can be rewritten to 'git commit -am "save"' for brevity (caveat: I don't know if -A is different from -a for the two commands).



Not really. It's in the manpage:

  commit -a
    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.

  add -A
    Update the index[...] This adds, modifies, and removes index entries to match the working tree.
So commit -a won't track new files, but add -A will.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: