Tagged articles
42 articles
Page 1 of 1
Architect's Guide
Architect's Guide
Mar 25, 2026 · Fundamentals

How to Safely Undo a Pushed Git Commit: 4 Proven Methods

This guide explains four ways to revert code that has already been pushed to a remote Git repository—including manual comparison, using git revert, creating a new branch, and resetting with various options—detailing their steps, advantages, and cautions.

BranchForce PushGit
0 likes · 7 min read
How to Safely Undo a Pushed Git Commit: 4 Proven Methods
Top Architect
Top Architect
Jan 5, 2026 · Backend Development

How to Undo a Pushed Git Commit: Revert, Reset, and Branch Strategies

When a mistaken commit has already been pushed, this guide explains four practical ways to roll back the changes—manual comparison, git revert, creating a new branch, and resetting the current branch—detailing each method's steps, risks, and when to use them.

BranchGitVersion Control
0 likes · 9 min read
How to Undo a Pushed Git Commit: Revert, Reset, and Branch Strategies
Linux Tech Enthusiast
Linux Tech Enthusiast
Dec 26, 2025 · Fundamentals

10 Essential Git Commands Visualized: Master Git Quickly

This article walks through ten core Git commands—including merge, rebase, reset, revert, cherry‑pick, fetch, pull, and reflog—using animated GIFs and concrete examples to illustrate how each command manipulates branches, history, and repository state, helping readers visualize and retain the concepts.

GitVersion Controlfetch
0 likes · 12 min read
10 Essential Git Commands Visualized: Master Git Quickly
Java Architect Handbook
Java Architect Handbook
Dec 11, 2025 · Interview Experience

How to Undo a Pushed Git Commit? A Step‑by‑Step Interview Guide

This article walks through four practical ways to revert code that has already been pushed to a remote Git repository—including manual diff removal, using git revert, creating a new branch, and resetting the current branch with hard, mixed, or keep options—plus tips on force‑pushing and branch protection.

Force PushGitVersion Control
0 likes · 8 min read
How to Undo a Pushed Git Commit? A Step‑by‑Step Interview Guide
Tencent Cloud Developer
Tencent Cloud Developer
May 14, 2025 · Fundamentals

9 Essential Git Tricks Every Developer Should Master

This guide presents nine practical Git techniques—including squashing commits, recovering lost history, cleaning workspaces, amending recent commits, partial file staging, protecting shared branches, undoing merges, purging files from history, and other handy commands—each explained with clear commands, warnings, and visual examples.

GitVersion Controlbest practices
0 likes · 9 min read
9 Essential Git Tricks Every Developer Should Master
Architect's Guide
Architect's Guide
Mar 10, 2025 · Fundamentals

Removing an Erroneous Git Commit and Cleaning Up History

This article explains how to delete a mistaken Git commit and its record by using interactive rebase, git reset, git revert, and git filter-branch, while highlighting the need for force‑push and the differences between rebase and reset.

Force PushGitfilter-branch
0 likes · 7 min read
Removing an Erroneous Git Commit and Cleaning Up History
Liangxu Linux
Liangxu Linux
Oct 16, 2024 · Fundamentals

Visualizing Git: Merge, Rebase, Reset, Revert, Fetch, Pull & Reflog Explained

This article uses animated diagrams to clearly illustrate how common Git commands—including merge (fast‑forward and no‑ff), rebase, reset (soft and hard), revert, cherry‑pick, fetch, pull, and reflog—operate on branches, commits, and history, helping developers understand and avoid common pitfalls.

GitVersion Controlfetch
0 likes · 12 min read
Visualizing Git: Merge, Rebase, Reset, Revert, Fetch, Pull & Reflog Explained
Top Architect
Top Architect
Oct 11, 2024 · Backend Development

How to Delete Git Commit History Using git revert and git reset

This article explains how to remove unwanted Git commit history by using git revert to create a new reversing commit and git reset (soft, mixed, or hard) to move the HEAD pointer, followed by a forced push to overwrite the remote repository, while warning about the risks involved.

Force PushGitVersion Control
0 likes · 10 min read
How to Delete Git Commit History Using git revert and git reset
Liangxu Linux
Liangxu Linux
Sep 21, 2024 · Fundamentals

Master Git from Scratch: Essential Commands and Workflows

This comprehensive guide walks you through Git fundamentals, installation, repository creation, file states, branching, merging, resetting, reverting, and cherry‑picking, providing clear command examples and visual illustrations to help beginners confidently manage version control in their projects.

GitVersion Controlbranching
0 likes · 11 min read
Master Git from Scratch: Essential Commands and Workflows
Python Programming Learning Circle
Python Programming Learning Circle
Aug 21, 2024 · Fundamentals

Understanding Common Git Commands: Merge, Rebase, Reset, Revert, Fetch, Pull, and Reflog

This article visually and textually explains essential Git commands—including merge, rebase, reset, revert, cherry-pick, fetch, pull, and reflog—detailing their effects on branches, commit history, and how to resolve conflicts, providing a comprehensive guide for developers to manage version control effectively.

GitVersion Controlfetch
0 likes · 10 min read
Understanding Common Git Commands: Merge, Rebase, Reset, Revert, Fetch, Pull, and Reflog
Top Architect
Top Architect
Aug 20, 2024 · Backend Development

How to Delete Git Commit History Using git revert and git reset

This article explains why and how to remove unwanted Git commit history by using git revert to create a compensating commit, git reset to move the HEAD pointer, and git push --force to overwrite the remote repository, with step‑by‑step commands and safety tips.

GitVersion Controlcommit history
0 likes · 11 min read
How to Delete Git Commit History Using git revert and git reset
Liangxu Linux
Liangxu Linux
Apr 10, 2024 · Fundamentals

Visualizing Git: Master Merge, Rebase, Reset, Revert & More

This article uses animated visualizations to clearly explain the core Git commands—merge (fast‑forward and no‑ff), rebase, interactive rebase actions, reset (soft and hard), revert, cherry‑pick, fetch, pull, and reflog—showing how each operation affects branches and history.

Gitfetchmerge
0 likes · 12 min read
Visualizing Git: Master Merge, Rebase, Reset, Revert & More
Laravel Tech Community
Laravel Tech Community
Nov 29, 2023 · Fundamentals

Git 2.43 Release Highlights: New Features for git repack, Multiple Cruft Packs, Object‑Filter Splitting, and Improved Revert Messages

Git 2.43 introduces several enhancements including an upgraded git repack command that supports multiple cruft packs, object‑filter based repository splitting, and cleaner commit messages for repeated revert operations, all aimed at improving performance and usability of version control workflows.

GitVersion Controlcruft-pack
0 likes · 3 min read
Git 2.43 Release Highlights: New Features for git repack, Multiple Cruft Packs, Object‑Filter Splitting, and Improved Revert Messages
Top Architect
Top Architect
Jun 26, 2021 · Fundamentals

Four Ways to Roll Back Code in Git: Revert, Reset, Rebase + Revert, and File Operations

After encountering a problematic jar introduced in version A, the author explores four Git-based rollback strategies—simple revert, hard reset with forced push, combining interactive rebase with a revert commit, and a file‑level copy‑checkout method—detailing their commands, pitfalls, and suitability for different scenarios.

code-rollbackrebasereset
0 likes · 10 min read
Four Ways to Roll Back Code in Git: Revert, Reset, Rebase + Revert, and File Operations
Top Architect
Top Architect
May 14, 2021 · Fundamentals

Practical Guide to Reverting, Resetting, and Rebasing for Git Code Rollback

This article walks through a real‑world scenario where a team needed to roll back a problematic jar introduced in an earlier release, comparing four Git‑based rollback strategies—revert, reset, rebase + revert, and a pure file‑operation method—highlighting their commands, pitfalls, and suitability.

code-rollbackrebasereset
0 likes · 10 min read
Practical Guide to Reverting, Resetting, and Rebasing for Git Code Rollback
Programmer DD
Programmer DD
Nov 11, 2020 · Fundamentals

How to Fix Mistaken Git Commits: Amend, Reset, and Revert Explained

This guide shows developers how to correct erroneous Git commits by using amend for message or author changes, reset (soft, mixed, hard, keep) to undo commits, and revert to create a new corrective commit, with practical code examples for each scenario.

GitVersion Controlamend
0 likes · 5 min read
How to Fix Mistaken Git Commits: Amend, Reset, and Revert Explained
Liangxu Linux
Liangxu Linux
Oct 27, 2020 · Fundamentals

Master Git: From Basics to Advanced Branch, Conflict, and Revert Techniques

This comprehensive guide walks you through Git fundamentals, explains the four work areas and file states, demonstrates essential commands for daily development, and dives into advanced topics such as branch management, conflict resolution, undo/revert strategies, tagging, and other powerful Git utilities.

GitTaggingVersion Control
0 likes · 18 min read
Master Git: From Basics to Advanced Branch, Conflict, and Revert Techniques
Liangxu Linux
Liangxu Linux
Apr 26, 2020 · Fundamentals

Master Git: Visualize Merge, Rebase, Reset, Revert, and More with GIFs

This article provides a visual, step‑by‑step guide to essential Git commands—including merge (fast‑forward and no‑ff), rebase (including interactive mode), reset (soft and hard), revert, cherry‑pick, fetch, pull, and reflog—explaining their behavior, use cases, and common pitfalls with animated illustrations.

GitVersion Controlcherry-pick
0 likes · 12 min read
Master Git: Visualize Merge, Rebase, Reset, Revert, and More with GIFs
Architecture Digest
Architecture Digest
Feb 3, 2020 · Fundamentals

Practical Strategies for Reverting and Resetting Code with Git

This article walks through four practical Git techniques—revert, reset, rebase + revert, and a file‑copy method—to safely roll back code when faced with performance‑critical bugs and complex version histories, while preserving commit history for future debugging.

GitVersion Controlcode management
0 likes · 9 min read
Practical Strategies for Reverting and Resetting Code with Git
ITPUB
ITPUB
Nov 13, 2019 · Fundamentals

Master Git: Safely Undo Commits and Reset Versions

This guide walks through essential Git habits, explains how to inspect changes, and provides step‑by‑step commands for resetting local or remote commits, handling renamed files, and understanding core concepts like the working directory, repository, staging area, and HEAD pointer.

GitVersion Controlgit commands
0 likes · 8 min read
Master Git: Safely Undo Commits and Reset Versions
21CTO
21CTO
Sep 16, 2018 · Fundamentals

Master Git Basics: From Repository Trees to Branch Merges and Rollbacks

This comprehensive guide walks you through Git fundamentals, explaining its distributed nature, repository tree structure, common commands for adding files, branching, merging, resolving conflicts, navigating commits, resetting, reverting, and synchronizing with remote repositories, all illustrated with clear examples and diagrams.

Merge Conflictsbranchingcommand-line
0 likes · 16 min read
Master Git Basics: From Repository Trees to Branch Merges and Rollbacks
MaGe Linux Operations
MaGe Linux Operations
Jun 26, 2015 · Fundamentals

Master Git Undo: Revert, Reset, Rebase, and More

This guide explains common Git undo scenarios—reverting public commits, amending messages, discarding local changes, resetting history, using reflog, branching tricks, interactive rebasing, and stopping file tracking—providing clear commands, underlying principles, and practical tips for safely managing version control mistakes.

GitUNDOVersion Control
0 likes · 15 min read
Master Git Undo: Revert, Reset, Rebase, and More