Git revert vs reset: What's the difference?

preview_player
Показать описание
If you're using git revert to rollback that last commit, you're doing it wrong. Use git reset --hard instead. It's a much more sound approach.
Рекомендации по теме
Комментарии
Автор

Thanks for making this material for us!

ryanprasad
Автор

what? Only 34 likes? You guys have no soul.

rcfxvxt
Автор

What if you pushed the bad commit to github before doing the reset? Then git pull would throw errors

DelkorYT
Автор

In all my years programming I have never found a good use of git revert.

sixtooxford
Автор

but advice, there are time where u need git revert!

ayekoe
visit shbcf.ru