Re: [git-users] Undoable reset hard

2014-03-18 Thread Dale R. Worley
From: Johannes Müller dersinndesleb...@gmx.net I tried thinking of a way to prevent accidental deletion by git reset --hard command, as I recently faced such a problem. How can you write a wrapper replacing the command, so that it first does something like the following? It should create a

Re: [git-users] Undoable reset hard

2014-03-16 Thread Johannes Müller
Hi, I can answer the question to why I ended up using reset at least, though I can imagine more scenarios. I wanted to do a reset on the current working directory (read subdirectory of the repository) instead of on the whole repository, and assumed git would do as I intuitively expected it to,

Re: [git-users] Undoable reset hard

2014-03-16 Thread Serge Matveenko
While reading your explanation I've imagined Bart Simpson writing Git is always working on the whole index over and over on the desk:) Sorry. On Sun, Mar 16, 2014 at 2:35 PM, Johannes Müller dersinndesleb...@gmx.net wrote: Hi, I can answer the question to why I ended up using reset at least,

[git-users] Undoable reset hard

2014-03-15 Thread Johannes Müller
Hi, I tried thinking of a way to prevent accidental deletion by git reset --hard command, as I recently faced such a problem. How can you write a wrapper replacing the command, so that it first does something like the following? It should create a new branch backup with all changes before

Re: [git-users] Undoable reset hard

2014-03-15 Thread Philip Oakley
From: Johannes Müller dersinndesleb...@gmx.net Hi, I tried thinking of a way to prevent accidental deletion by git reset --hard command, as I recently faced such a problem. How can you write a wrapper replacing the command, so that it first does something like the following? It should create