9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] git equivalent of git reset --hard <commit>
@ 2024-12-12 16:00 ron minnich
  2024-12-12 16:17 ` Jacob Moody
  0 siblings, 1 reply; 2+ messages in thread
From: ron minnich @ 2024-12-12 16:00 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

not quite sure how to do this, but I'd like to reset a branch I am on to a
certain commit.

Any hints?

[-- Attachment #2: Type: text/html, Size: 155 bytes --]

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

* Re: [9front] git equivalent of git reset --hard <commit>
  2024-12-12 16:00 [9front] git equivalent of git reset --hard <commit> ron minnich
@ 2024-12-12 16:17 ` Jacob Moody
  0 siblings, 0 replies; 2+ messages in thread
From: Jacob Moody @ 2024-12-12 16:17 UTC (permalink / raw)
  To: 9front

On 12/12/24 10:00, ron minnich wrote:
> not quite sure how to do this, but I'd like to reset a branch I am on to a certain commit. 
> 
> Any hints?

We use git/branch for this, -b picks a commit as the new "base" and -n will overwrite an existing
branch with the same name so you'd do something like:

git/branch -nb <commit to revert to> <branch name>


Thanks,
moody


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

end of thread, other threads:[~2024-12-12 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-12 16:00 [9front] git equivalent of git reset --hard <commit> ron minnich
2024-12-12 16:17 ` Jacob Moody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).