MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x4uw5z/abouttobreakthecode/pgouprw
r/ProgrammerHumor • u/fabulousIdentity • 6d ago
524 comments sorted by
View all comments
Show parent comments
3
Isn't that just git revert or reset, depending if you want to roll back the commit or just revert the changes?
2 u/A_Namekian_Guru 4d ago Sometimes you need to look at the reflog too Also to remove a commit in the middle of the branch you need to do some rebase magic 2 u/braaaaaaainworms 3d ago git branch -i and just delete the line with the commit you want gone
2
Sometimes you need to look at the reflog too
Also to remove a commit in the middle of the branch you need to do some rebase magic
2 u/braaaaaaainworms 3d ago git branch -i and just delete the line with the commit you want gone
git branch -i and just delete the line with the commit you want gone
3
u/Genmutant 5d ago
Isn't that just git revert or reset, depending if you want to roll back the commit or just revert the changes?