Re: `git reset` for delete + intent-to-add doesn't reset

2019-01-08 Thread Duy Nguyen
On Tue, Jan 8, 2019 at 4:44 PM Duy Nguyen wrote: > > On Tue, Jan 8, 2019 at 2:28 PM Anthony Sottile wrote: > > > > ``` > > git --version > > rm -rf t > > git init t > > cd t > > touch a > > git add a > > git commit -m "add a" > > git rm a > > touch a > > git add --intent-to-add a > > git status -

Re: `git reset` for delete + intent-to-add doesn't reset

2019-01-08 Thread Duy Nguyen
On Tue, Jan 8, 2019 at 2:28 PM Anthony Sottile wrote: > > ``` > git --version > rm -rf t > git init t > cd t > touch a > git add a > git commit -m "add a" > git rm a > touch a > git add --intent-to-add a > git status --short > git reset -- a "git reset" without "-- a" does remove intent-to-add st

Re: `git reset` for delete + intent-to-add doesn't reset

2019-01-07 Thread Anthony Sottile
On Mon, Jan 7, 2019 at 11:25 PM Anthony Sottile wrote: > Even `git reset --intent-to-add -- a` or `git checkout -- a` don't > seem to clear the `intent-to-add` state > > How do I reset the intent-to-add status in this case? > > Anthony Pressed send too quickly, it appears I can use `git rm --cach

`git reset` for delete + intent-to-add doesn't reset

2019-01-07 Thread Anthony Sottile
``` git --version rm -rf t git init t cd t touch a git add a git commit -m "add a" git rm a touch a git add --intent-to-add a git status --short git reset -- a git status --short ``` (the git version below is compiled from ecbdaf0899161c067986e9d9d564586d4b045d62) ``` $ bash -x t.sh + git --versi