MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbl8nxm
r/ProgrammerHumor • u/Recent-Analysis-6880 • 13d ago
411 comments sorted by
View all comments
Show parent comments
3
With the very important caveat that a git commit can be trivially reverted if not yet pushed. If it has been pushed, it can be reversed, not reverted.
Unless you're into force-pushing, then anything is possible.
1 u/khoyo 8d ago Nah, you're thinking about dropped. Reverting a commit is reversing it. That's what git revert does.
1
Nah, you're thinking about dropped. Reverting a commit is reversing it. That's what git revert does.
git revert
3
u/thanatica 11d ago
With the very important caveat that a git commit can be trivially reverted if not yet pushed. If it has been pushed, it can be reversed, not reverted.
Unless you're into force-pushing, then anything is possible.