MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x6ntbk/letsmergethemall/pgy2fy9/
r/ProgrammerHumor • u/rabbit_wizard • Oct 15 '26
316 comments sorted by
View all comments
Show parent comment
9
git add .
git commit -m "" --allow-empty-message
git push -f
4 u/elementslayer Oct 15 '26 Why two commands. Just commit -am 1 u/korneev123123 Oct 15 '26 git commit -am won't add new files 1 u/elementslayer Oct 15 '26 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 Oct 16 '26 I always see people using git add . and git add -A like it's not crazy talk. 1 u/korneev123123 Oct 16 '26 Example above was surely supposed to be "push everything", and adding everything was the goal 1 u/Foorinick Oct 15 '26 I havent worked in professional enviroments but im too autistic not to fill out all the forms so for me its more like(In branch "feature name")Git add.Git commit -m "feat(part of software): fixes thing" (because apparently somewhere it reads "this commit (commit message)")Git pushGit squash (its been a while i dont remember the rest)Git merge feature into main or whateverGit checkout main 1 u/forma_cristata Oct 15 '26 You were almost thereGit pullGit checkout -b feature/somethingRepeat 1 u/Foorinick Oct 16 '26 This close to finally not having to ask claude to guide me
4
Why two commands. Just commit -am
1 u/korneev123123 Oct 15 '26 git commit -am won't add new files 1 u/elementslayer Oct 15 '26 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 Oct 16 '26 I always see people using git add . and git add -A like it's not crazy talk. 1 u/korneev123123 Oct 16 '26 Example above was surely supposed to be "push everything", and adding everything was the goal
1
git commit -am won't add new files
1 u/elementslayer Oct 15 '26 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 Oct 16 '26 I always see people using git add . and git add -A like it's not crazy talk. 1 u/korneev123123 Oct 16 '26 Example above was surely supposed to be "push everything", and adding everything was the goal
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 Oct 16 '26 I always see people using git add . and git add -A like it's not crazy talk. 1 u/korneev123123 Oct 16 '26 Example above was surely supposed to be "push everything", and adding everything was the goal
I always see people using git add . and git add -A like it's not crazy talk.
git add -A
Example above was surely supposed to be "push everything", and adding everything was the goal
I havent worked in professional enviroments but im too autistic not to fill out all the forms so for me its more like
(In branch "feature name")
Git add.
Git commit -m "feat(part of software): fixes thing" (because apparently somewhere it reads "this commit (commit message)")
Git push
Git squash (its been a while i dont remember the rest)
Git merge feature into main or whatever
Git checkout main
1 u/forma_cristata Oct 15 '26 You were almost thereGit pullGit checkout -b feature/somethingRepeat 1 u/Foorinick Oct 16 '26 This close to finally not having to ask claude to guide me
You were almost there
Git pull
Git checkout -b feature/something
Repeat
1 u/Foorinick Oct 16 '26 This close to finally not having to ask claude to guide me
This close to finally not having to ask claude to guide me
View all comments
Show parent comment
9
u/TwoAndHalfRetard Oct 15 '26
git add .
git commit -m "" --allow-empty-message
git push -f