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 -
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
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 --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
4 matches
Mail list logo