All of lore.kernel.org
 help / color / mirror / Atom feed
* How to revert to a specific commit?
@ 2024-12-02 11:40 tao lv
  2024-12-02 12:39 ` Chris Torek
  2024-12-02 12:50 ` Matěj Cepl
  0 siblings, 2 replies; 5+ messages in thread
From: tao lv @ 2024-12-02 11:40 UTC (permalink / raw)
  To: git

I want to revert the code to a specific commit. This commit is not a
direct part of the branch history; there are merge operations, branch
forks, and other changes in between. Therefore, directly using `revert
HEAD...commit` fails due to merge need -m.

I don't want to revert each individual commit; I just want to restore
the code to this specific commit while retaining all the current
history commits.

How can I achieve this? Is there a better way than using the revert function?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-03  2:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02 11:40 How to revert to a specific commit? tao lv
2024-12-02 12:39 ` Chris Torek
2024-12-03  0:57   ` Junio C Hamano
2024-12-03  2:45     ` Chris Torek
2024-12-02 12:50 ` Matěj Cepl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.