Tagged articles
10 articles
Page 1 of 1
Top Architect
Top Architect
Apr 16, 2025 · Fundamentals

How to Delete Commit History with git revert and git reset

This article explains why you might need to remove a commit from Git history, demonstrates how to use git revert to create a new commit that undoes changes while preserving history, and shows how git reset combined with a forced push can completely erase unwanted commits from both local and remote repositories.

Force PushGitVersion Control
0 likes · 12 min read
How to Delete Commit History with git revert and git reset
Code Mala Tang
Code Mala Tang
Mar 29, 2025 · Fundamentals

Master Git: Revert, Reset, Checkout & Restore Commands Explained

Learn how to safely undo changes in Git using commands like git revert, git reset (soft, mixed, hard), git checkout, and git restore, with clear explanations, usage examples, and best‑practice tips to keep your project history clean and recover lost work.

GitVersion Controlgit reset
0 likes · 7 min read
Master Git: Revert, Reset, Checkout & Restore Commands Explained
Top Architect
Top Architect
Aug 17, 2024 · Fundamentals

How to Delete a Git Commit from History Using git revert, git reset and Force Push

This article explains why you might need to remove a mistaken Git commit, demonstrates how to use git revert and git reset with various options, shows step‑by‑step commands—including force‑pushing to remote—to completely erase the unwanted commit while preserving or discarding history as required.

Force PushGitVersion Control
0 likes · 11 min read
How to Delete a Git Commit from History Using git revert, git reset and Force Push
Top Architect
Top Architect
Aug 1, 2024 · Fundamentals

How to Delete Commit History Using git revert, git reset and Force Push

This article explains when and how to use git revert to undo commits while preserving history, demonstrates git reset for removing commits entirely, and shows how to force‑push the cleaned state to a remote repository, including safety warnings and practical command examples.

Force PushGitVersion Control
0 likes · 10 min read
How to Delete Commit History Using git revert, git reset and Force Push
Top Architect
Top Architect
Jul 6, 2024 · Fundamentals

How to Delete Commit History Using git revert, git reset, and Force Push

This article explains why and how to remove unwanted Git commit history by using git revert to create undo commits, git reset to move the HEAD pointer and discard changes, and finally force‑pushing the cleaned local branch to overwrite the remote repository, with step‑by‑step code examples and safety tips.

Force PushGitVersion Control
0 likes · 11 min read
How to Delete Commit History Using git revert, git reset, and Force Push
Liangxu Linux
Liangxu Linux
Feb 16, 2020 · Fundamentals

Master Git Basics: 3 Steps, 4 Areas, 5 States and How to Undo Changes

This guide explains Git's core workflow—adding, committing, and pushing—breaks down the four Git areas and five file states, shows how to inspect changes with various git diff commands, and provides step‑by‑step commands to undo modifications at each stage, all illustrated with practical examples.

GitVersion Controlgit checkout
0 likes · 8 min read
Master Git Basics: 3 Steps, 4 Areas, 5 States and How to Undo Changes
21CTO
21CTO
Aug 21, 2018 · Fundamentals

Master Git: Understanding Working Directory, Staging Area, and History

This article explains Git's three core areas—working directory, staging (index) area, and history—detailing how commands like git add, commit, reset, checkout, and revert manipulate these zones, with visual diagrams and practical examples for effective version control.

GitStaging AreaVersion Control
0 likes · 12 min read
Master Git: Understanding Working Directory, Staging Area, and History