Tagged articles
commit history
11 articles · Page 1 of 1
This tutorial explains four methods to undo pushed Git commits: manual file restoration, git revert for safe single-commit rollbacks, creating a new branch from an old commit for bulk rollbacks, and hard reset with force push for history rewriting—each with trade-offs for safety and history preservation.
Gitbranch strategycommit history
0 likes · 7 min read

The article warns that using plain git pull can clutter commit history, recommends pull --rebase to keep a clean linear log, and then dives into the LeetCode ‘Optimal Division’ problem, explaining the greedy strategy, providing Java code, and analyzing its O(n) time and space complexity.
GitJavacommit history
0 likes · 5 min read

This article walks through a realistic scenario where two developers work on parallel feature branches, compares the outcomes of using git merge versus git rebase—including fast‑forward and non‑fast‑forward merges, conflict resolution steps, and the impact on commit history—so you can choose the right strategy for your workflow.
Gitcommit historyconflict resolution
0 likes · 7 min read

Learn how to use interactive rebase in your daily development workflow to clean, reorder, and rewrite commit history, turning scattered changes and pull‑request feedback into a coherent, readable story that improves team collaboration and code maintainability.
Gitcommit historyinteractive rebase
0 likes · 7 min read

This guide explains why you might need to erase a Git commit, compares git revert and git reset, provides step‑by‑step commands with examples, and shows how to force‑push to remove the unwanted history from both local and remote repositories.
GitGit Revertcommit history
0 likes · 11 min read

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.
GitGit Revertcommit history
0 likes · 12 min read

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.
Gitcommit historyforce-push
0 likes · 11 min read

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.
GitGit Revertcommit history
0 likes · 11 min read

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.
GitGit Revertcommit history
0 likes · 10 min read

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.
GitGit Revertcommit history
0 likes · 11 min read

This article explains why you might need to remove a Git commit from history and provides step‑by‑step instructions for using git revert, git reset (soft, mixed, hard), and force‑push to permanently delete unwanted commits while highlighting the risks involved.
GitGit Revertcommit history
0 likes · 8 min read
