Comments (3)
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.
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.
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)
- The "Add Code" section seems misleading HOT 1
- Adding Japanese version
- Add more questions that are impossible
- Suggestion to add GitUI to the list of gui clients
- Adding README_ar.md HOT 1
- Renaming from `master` to `main` HOT 2
- Renaming the default branch from `master` to `main` HOT 1
- There's no section "I want to add command line coloring for Git" HOT 1
- Adding "How to split a branch in two" flight rule HOT 2
- General process for translations HOT 3
- How do you add entire files using `git add -p`?
- Add a back to top button HOT 1
- Wow - Thank you for this repo HOT 1
- Hy HOT 1
- Moving a change from one commit to another HOT 2
- Create an Open Collective?
- โI committed to main instead of a new branchโ, but new code discarded HOT 1
- Description about `--amend` in "I need to change the content of a commit which is not my last" HOT 1
- "Unstaged Edits" includes repeated contents HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-flight-rules.