StackOverflow Questions for Tag: git-reset

Crazy Serb
Crazy Serb

Reputation: 76330

How do I revert a Git repository to a previous commit?

Score: 7608

Views: 12063098

Answers: 41

Read More
Manolo
Manolo

Reputation: 26440

How can I undo pushed commits using Git?

Score: 1609

Views: 2603866

Answers: 19

Read More
kissmemiau
kissmemiau

Reputation: 1

How to delete a commit from remote branch without possibility of recovery?

Score: -1

Views: 43

Answers: 0

Read More
Amal Kumar S
Amal Kumar S

Reputation: 16075

How to cancel a local git commit?

Score: 939

Views: 1267819

Answers: 8

Read More
tanookiben
tanookiben

Reputation: 24805

Can I delete (or undo) a git commit but keep the changes?

Score: 2165

Views: 1452111

Answers: 13

Read More
Thinh NV
Thinh NV

Reputation: 3862

What is `git restore` and how is it different from `git reset`?

Score: 282

Views: 370573

Answers: 5

Read More
Compholio
Compholio

Reputation: 1012

How do I get "git reset" to also automatically reset submodules?

Score: 1

Views: 43

Answers: 1

Read More
Vihaan Verma
Vihaan Verma

Reputation: 13143

git rm --cached file vs git reset file

Score: 70

Views: 114194

Answers: 2

Read More
Norswap
Norswap

Reputation: 12222

Unstaged changes left after git reset --hard

Score: 423

Views: 313181

Answers: 24

Read More
Cade Bryant
Cade Bryant

Reputation: 1075

Git says my branch is ahead of origin - even after revert/reset

Score: 0

Views: 87

Answers: 3

Read More
Ras
Ras

Reputation: 147

How to delete a merge commit from git history?

Score: 2

Views: 98

Answers: 3

Read More
Frida M. O.
Frida M. O.

Reputation: 1

Does "git reset --hard HEAD~1" on main branch remove this commit from another branch's history (when that branch is based off main)?

Score: -2

Views: 37

Answers: 1

Read More
Geoff Alexander
Geoff Alexander

Reputation: 502

Reset all uncommited changes when working in a local Git repository

Score: 0

Views: 34

Answers: 0

Read More
WickyNilliams
WickyNilliams

Reputation: 5308

Git cannot undo modified files

Score: 14

Views: 16280

Answers: 7

Read More
user27052453
user27052453

Reputation:

after git reset last year's github contribution counter outdated

Score: 0

Views: 40

Answers: 0

Read More
hap497
hap497

Reputation: 163255

How do I delete a commit from a branch?

Score: 4470

Views: 5462661

Answers: 42

Read More
Antarr Byrd
Antarr Byrd

Reputation: 26159

git undo all uncommitted or unsaved changes

Score: 1345

Views: 1471049

Answers: 18

Read More
AlexWang
AlexWang

Reputation: 379

Difference between git reset --hard and git clean

Score: 32

Views: 14753

Answers: 2

Read More
yao
yao

Reputation: 2053

Why git can't do hard/soft resets by path?

Score: 196

Views: 155246

Answers: 9

Read More
Vinod
Vinod

Reputation: 1091

Regarding the repercussions of git hard reset on remote

Score: 0

Views: 51

Answers: 2

Read More
PreviousPage 1Next