Coder Social home page Coder Social logo

Comments (3)

RichardLitt avatar RichardLitt commented on May 26, 2024

Where is the answer to "I accidentally did a --keep reset, and I want my changes back"? I don't see it in the doc.

from git-flight-rules.

etomzak avatar etomzak commented on May 26, 2024

That's what I mean: "I accidentally did a --keep reset, and I want my changes back" is not in the doc, but it would be helpful to have it in the doc. If it were in the doc, then I'm pretty sure the answer would be the same as the answer to "I accidentally did a hard reset, and I want my changes back" (which is already in the doc).

One option would be to extend the wording of the existing "hard" question to also include "keep". Another option would be to add a separate "keep" question, which would have an identical answer as the "hard" question.

That said, I don't have much experience digging through the reflog, so I'm not 100% certain that the answer to "keep" is the same as the answer to "hard". There could be some arcane reason why undoing a reset --keep needs to be subtly different from undoing a reset --hard.

from git-flight-rules.

RichardLitt avatar RichardLitt commented on May 26, 2024

I would just add a line to the section saying that "this also works if you accidentally ...". That should make it serchable.

There could be some arcane reason why undoing a reset --keep needs to be subtly different from undoing a reset --hard.

Sounds like this would be a fun thing to find out! Would you like to look into it, and submit the changes in a PR?

from git-flight-rules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.