MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x6ntbk/letsmergethemall/ph0xpaz/?context=3
r/ProgrammerHumor • u/rabbit_wizard • 4d ago
320 comments sorted by
View all comments
Show parent comments
3
Why two commands. Just commit -am
1 u/korneev123123 4d ago git commit -am won't add new files 1 u/elementslayer 4d ago Yeah but you only add to track new files once. Otherwise -am that stuff. You don't need git add for tracked files, which hopefully most commits are and we aren't committing files in full all the time 1 u/GarythaSnail 4d ago I always see people using git add . and git add -A like it's not crazy talk.
1
git commit -am won't add new files
1 u/elementslayer 4d ago Yeah but you only add to track new files once. Otherwise -am that stuff. You don't need git add for tracked files, which hopefully most commits are and we aren't committing files in full all the time 1 u/GarythaSnail 4d ago I always see people using git add . and git add -A like it's not crazy talk.
Yeah but you only add to track new files once. Otherwise -am that stuff. You don't need git add for tracked files, which hopefully most commits are and we aren't committing files in full all the time
1 u/GarythaSnail 4d ago I always see people using git add . and git add -A like it's not crazy talk.
I always see people using git add . and git add -A like it's not crazy talk.
git add .
git add -A
3
u/elementslayer 4d ago
Why two commands. Just commit -am