As a git noob trying it out on a Rails project, I am wondering if it is bad practice to do git add .
(add current directory) before every commit. The intro tutorials I have seen show adding the current directory initially, then using git add new_file
to add files after that. If I'm adding a bunch of files from a bunch of different directories, this seems too hard.
Essentially, if you are adding more than one or two files, is it OK to use git add .
every time I want to commit? Is using git add .
the same as explicitly doing git add new_file
for every file that has been created since the last commit?