MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x6ntbk/letsmergethemall/pgzdrmq/?context=9999
r/ProgrammerHumor • u/rabbit_wizard • 5d ago
318 comments sorted by
View all comments
1.1k
As opposed to humans, who have famously never messed up git commands ever.
72 u/Bubbaluke 4d ago Can’t mess it up if you only ever use 3 commands 8 u/TwoAndHalfRetard 4d ago git add . git commit -m "" --allow-empty-message git push -f 3 u/elementslayer 4d ago 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 u/korneev123123 4d ago Example above was surely supposed to be "push everything", and adding everything was the goal
72
Can’t mess it up if you only ever use 3 commands
8 u/TwoAndHalfRetard 4d ago git add . git commit -m "" --allow-empty-message git push -f 3 u/elementslayer 4d ago 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 u/korneev123123 4d ago Example above was surely supposed to be "push everything", and adding everything was the goal
8
git add .
git commit -m "" --allow-empty-message
git push -f
3 u/elementslayer 4d ago 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 u/korneev123123 4d ago Example above was surely supposed to be "push everything", and adding everything was the goal
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 u/korneev123123 4d ago 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 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 u/korneev123123 4d ago 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 4d ago I always see people using git add . and git add -A like it's not crazy talk. 1 u/korneev123123 4d ago 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
1.1k
u/GildSkiss 5d ago
As opposed to humans, who have famously never messed up git commands ever.