Tag

reset

0 views collected around this technical thread.

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.

filter-branchforce pushgit
0 likes · 7 min read
Removing an Erroneous Git Commit and Cleaning Up History
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.

TutorialVersion Controlforce push
0 likes · 10 min read
How to Delete Git Commit History Using git revert and git reset
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.

Version Controlfetchgit
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.

Version Controlcommit historyforce push
0 likes · 11 min read
How to Delete Git Commit History Using git revert and git reset
Top Architect
Top Architect
Aug 5, 2024 · Backend Development

Reverting Mistaken Commits Locally and Remotely with Git and IDEA

This article explains step‑by‑step how to compare, delete, reset, and force‑push unwanted Git commits using both simple manual comparison and the more elegant reset options in IntelliJ IDEA, while also noting the limitations of complex changes and including promotional offers for related services.

IntelliJ IDEAVersion Controlbackend development
0 likes · 8 min read
Reverting Mistaken Commits Locally and Remotely with Git and IDEA
Code Ape Tech Column
Code Ape Tech Column
Jul 16, 2024 · Fundamentals

Practical Git Commands: stash, reset --soft, cherry-pick, revert, reflog and Short Aliases

This article introduces five essential Git commands—stash, reset --soft, cherry-pick, revert, and reflog—explaining their purposes, typical scenarios, and step‑by‑step usage, and also shows how to create convenient short aliases for frequent Git operations.

Version Controlcherry-pickgit
0 likes · 16 min read
Practical Git Commands: stash, reset --soft, cherry-pick, revert, reflog and Short Aliases
Top Architect
Top Architect
Jul 8, 2024 · Fundamentals

Recovering Wrongly Pushed Commits with Git in IntelliJ IDEA

This article explains how to revert accidental commits both locally and on the remote repository using simple compare‑versions techniques and IntelliJ IDEA's Git reset options, followed by a force‑push, while also warning about protected branches and noting the 2023 IDEA version specifics.

IntelliJ IDEATutorialVersion Control
0 likes · 8 min read
Recovering Wrongly Pushed Commits with Git in IntelliJ IDEA
Selected Java Interview Questions
Selected Java Interview Questions
Feb 27, 2024 · Fundamentals

How to Undo Pushed Commits in Git: Manual, Revert, New Branch, and Reset Methods

This article explains several practical ways to roll back code that has already been pushed to a remote Git repository, including manual file comparison, using git revert, creating a new branch, and performing a reset with force‑push, while highlighting the advantages and caveats of each approach.

Version Controlbranchforce push
0 likes · 6 min read
How to Undo Pushed Commits in Git: Manual, Revert, New Branch, and Reset Methods
Architecture Digest
Architecture Digest
Feb 20, 2024 · Fundamentals

How to Revert Commits and Reset Branches in Git Using IntelliJ IDEA

This article explains several methods for undoing unwanted Git commits—including a simple compare‑and‑delete approach and a more elegant reset‑and‑force‑push workflow in IntelliJ IDEA—covering both local and remote repository restoration while highlighting the differences between soft, mixed, hard, and keep reset options.

Commit RevertIntelliJ IDEAVersion Control
0 likes · 7 min read
How to Revert Commits and Reset Branches in Git Using IntelliJ IDEA
Java Captain
Java Captain
Dec 7, 2023 · Fundamentals

How to Revert Local and Remote Git Commits Using IntelliJ IDEA

This guide explains how to undo unwanted commits both locally and on a remote Git repository using IntelliJ IDEA, covering simple manual comparison, the IDE's reset options, and force‑push to synchronize the cleaned history.

IntelliJ IDEAVersion Controlbranch management
0 likes · 6 min read
How to Revert Local and Remote Git Commits Using IntelliJ IDEA
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 7, 2023 · Frontend Development

Understanding and Fixing the Reset Behavior Issue in Element‑Plus Form Component

This article analyzes why the reset button in an Element‑Plus form clears all fields instead of restoring the initial values, explains the underlying cause related to the onMounted lifecycle timing, and presents several practical solutions—including lifecycle adjustment, patch‑package, component extension, and repository forking—to reliably preserve initial form data in Vue projects.

Element-PlusPatchVue
0 likes · 7 min read
Understanding and Fixing the Reset Behavior Issue in Element‑Plus Form Component
php中文网 Courses
php中文网 Courses
Aug 4, 2023 · Backend Development

Understanding PHP reset() Function: Syntax, Examples, and Usage

This article explains PHP's reset() function, its syntax, behavior, and provides multiple code examples demonstrating how to retrieve the first array element, iterate through arrays, and combine it with end() to access both first and last elements.

FunctionsPHPTutorial
0 likes · 4 min read
Understanding PHP reset() Function: Syntax, Examples, and Usage
Selected Java Interview Questions
Selected Java Interview Questions
Feb 8, 2022 · Fundamentals

How to Undo Operations in Git: Revert, Reset, Amend, Checkout and More

This article explains the most common Git undo scenarios—including revert, reset, amend, checkout, and removing staged files—providing clear command examples and explanations of how each operation works and when to use them.

Version Controlamendcheckout
0 likes · 6 min read
How to Undo Operations in Git: Revert, Reset, Amend, Checkout and More
Sohu Tech Products
Sohu Tech Products
Oct 20, 2021 · Fundamentals

Basic Git Commands and Workflow Overview

This article explains the fundamental Git commands for adding, committing, resetting, checking out, and managing branches, along with detailed descriptions of diff, commit, checkout, reset, merge, cherry-pick, and rebase operations, providing visual illustrations and practical usage tips.

Version Controlbranchcommit
0 likes · 10 min read
Basic Git Commands and Workflow Overview
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.

Version Controlcode-rollbackgit
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.

Version Controlcode-rollbackgit
0 likes · 10 min read
Practical Guide to Reverting, Resetting, and Rebasing for Git Code Rollback
php中文网 Courses
php中文网 Courses
Apr 21, 2021 · Backend Development

Understanding PHP foreach by Simulating It with current(), reset() and next() Functions

This tutorial explains how to grasp the inner workings of PHP's foreach loop by using the current(), reset() and next() functions to manually iterate over arrays, providing syntax details, practical code examples, and the resulting output for clearer comprehension.

array iterationcurrentforeach
0 likes · 3 min read
Understanding PHP foreach by Simulating It with current(), reset() and next() Functions
Top Architect
Top Architect
Feb 19, 2021 · Fundamentals

Visual Guide to Common Git Commands and Their Detailed Explanation

This article provides a comprehensive visual guide to the most frequently used Git commands, explaining their purpose, usage, and effects on the working directory, index, and repository, while illustrating concepts such as commits, branches, merges, rebases, and detached HEAD with clear diagrams.

Version Controlbranchcommands
0 likes · 9 min read
Visual Guide to Common Git Commands and Their Detailed Explanation