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

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

Channel:
Subscribers:
243,000
Published on ● Video Link: https://www.youtube.com/watch?v=lVpLoUecZYY



Category:
Tutorial
Duration: 5:38
82,265 views
866


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: https://youtube.com/channel/UCkih2oVTbXPEpVwE-U7kmHw/join
-----------------------------
💸 Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
💬 Discuss video & Suggest (Discord): https://s.tcno.co/Discord
👉 Game guides & Simple tips: https://YouTube.com/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.




Other Videos By TroubleChute


2021-08-14Use existing HDD/SSD in Hyper-V | No Reinstall | Recover and more!
2021-08-11Mono to Stereo/Editing one channel | Adobe Audition
2021-08-11Fix "Something wrong" claiming gift | Discord + YouTube Premium & More
2021-08-11How to Cancel YouTube Premium | Full Guide
2021-08-10Claim 3 months FREE YouTube Premium | Discord Nitro Guide | 2021
2021-08-06Twitter: Fix "Something went wrong" loop | Logout\Login error fix
2021-08-05Fix RTC Connecting on Discord | Easy fixes | Full Guide
2021-08-05Back 4 Blood 2 INSTANT FREE Early Access Key | Updated Guide | 2021
2021-08-04Get a Back 4 Blood Early Access Key | Full Guide | 2021
2021-08-03Guide: Move Ark from Epic Games to Steam | Tiny Redownload! Fast!
2021-08-02Deleting commits | How, why and why not | GitHub Tutorial
2021-07-30Create a GitHub Profile Readme | Useful 'GitHub Bio' screen for your profile!
2021-07-28Discord Threads | Crash Course | Early Access | Full Guide
2021-07-27Fix Windows 11 start-up - Blackscreen, Bootloop, Infinite Loading
2021-07-26Root Bluestacks 5 (No downloads, x64/x32) | LATEST | Working 2023
2021-07-22Guide: Migrate Minecraft to Microsoft | Claim your cape | Details/How to!
2021-07-18How to: Change keyboard layout | Windows 11 Guide
2021-07-18How to: Change keyboard layout | Windows 10 Guide
2021-07-14Guide: Get 1.18 Experimental Snapshot 1 | Minecraft Beta Install
2021-07-14Guide: Get Bedrock 1.18 Experimental Snapshot 1 | Minecraft Beta Install
2021-07-11How to get access to the TeamSpeak Beta | Full Guide



Tags:
github
github tutorial
git commit
commit
github (website)
github delete commit
github delete repo
github delete commit history
github delete commit from master
github commit history delete
delete commit
github commit
github delete repository
delete github branch
github commit history
github desktop commit and push
how to commit code in github
github commands
how to delete repository github
how to delete github repository