My main question here is whether it makes sense to always do git commit -aminstead git add. and then git commit -m?
git commit -am
git add
git commit -m
I understand that -am indicates that it will add all the changes from the modified TRACKED files. Therefore, in a situation where I did not add any new files, it would be advisable to simply run git commit -am instead of git add, but it would be best to do this:
git add.
git commit -am "message"
anyway?
or even instead:
git add -A git commit -am "message"
it would be best to use:git add.git commit -am "message"anyway?
it would be best to use:
, " " . - , git add + git commit -m git commit -am .
, git add:
, , , commit -a: , (, , - , ...). commit -a - git add.
commit -a
, , , git commit -a.
git commit -a
, -am, . git add -u , git commit -a, git diff --cached, , . , git add -p, , .
-am
git add -u
git diff --cached
git add -p
, , - git commit -am , , , .
.gitignore , git commit -am - -. git add -uA <nopattern> ; git commit -m "message".
.gitignore
git add -uA <nopattern> ; git commit -m "message"
This is git, best practice is subjective. I prefer to add files manually to be able to view the changes as I go, but you may not need it.
Source: https://habr.com/ru/post/1527582/More articles:React JSX: a unique key in a conditional array - reactjsVoltDB: How to start or compile a database programmatically? - javaCurved sides in CSS3 - cssCalling ViewGroup # addView and ViewGroup # removeView raises NullPointerException - androidGTK and INotify do not work together - haskellPrinting a malloc'd pointer always gives the same address - cDownload CSV from url to Selenium? - pythonCelery 3.1.9 Django Integration Defining a Settings File Without Using djcelery - djangohttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1527586/how-to-copy-files-to-commonappdatafolder&usg=ALkJrhhQHsTHMp30bgc2SDofyZBIinczzwJavaFX: setHgrow (...) not working - javaAll Articles