Deleting commits | How, why and why not | GitHub Tutorial

Veröffentlicht am: 01 August 2021
auf dem Kanal: TroubleChute
126,835
1.2k

Made a mistake and want to undo or hide it from GitHub? Well, it's not the best to delete commits, but here's a step-by-step guide on how to do it. The video also touches on the only true ways to delete commits, and why you may or may not want to attempt to do so. By the end, you should have a better idea of how to delete commits, and why.

1. git reset --soft HEAD~1
2. git push origin +main --force

Timestamps:
0:00 - Explanation
0:17 - Why?
0:44 - Creating commits to delete
1:51 - Deleting commits from GitHub
3:29 - Why you DON'T want to delete commits

#GitHub #Delete #Commit
-----------------------------
💸 Found this useful? Help me make more! Support me by becoming a member:    / @troublechute  
-----------------------------
💸 Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
💬 Discuss video & Suggest (Discord): https://s.tcno.co/Discord
👉 Game guides & Simple tips:    / troublechutebasics  
🌐 Website: https://tcno.co
📧 Need voice overs done? Business query? Contact my business email: TroubleChute (at) tcno.co

Everything in this video is my personal opinion and experience, and should not be considered professional advice. Always do your own research and make sure what you're doing is safe.


Auf dieser Seite können Sie das Online-Video Deleting commits | How, why and why not | GitHub Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer TroubleChute 01 August 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 126,835 Mal angesehen und es wurde von 1.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!