celé vlákno
Zdar,
parametr -a u commitu IMHO zpusobi, ze se do nej zahrnou i zmeny v souborech, ktere jsme nepridali do indexu pomoci 'git add'... Takze pokud chcete udelat commit zmen jen souboru foo1 a foo3, ale ne foo2 (ktery jste ale taky upravili), udelate toto:
git add foo1 foo3
git commit -m 'Skvela uprava s vynechanim foo2' -s
a git provede commit jen na tech dvou souborech.
V man strance je k tomu tento odstavecek:
-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.
Cili: zahrne vsechny soubory, krome novych, ktere jeste nejsou v repozitari. Nove soubory se do repozitare musi explicitne dodat pres 'git add'.
Honza