Supporting untracked files with `git pull --autostash`
- Date: Sun, 14 Apr 2019 18:20:13 +0000
- From: mqudsi@xxxxxxxxxxxx
- Subject: Supporting untracked files with `git pull --autostash`
Just a quick request for an enhancement to the behavior of the following
git pull --autostash --rebase
When executed with local, untracked files that would conflict with newly-added
files upstream, e.g.
An untracked local file `master:/foo` would be overwritten by a recently tracked
Currently, the following occurs:
mqudsi@devpc > git pull --autostash --rebase
First, rewinding head to replay your work on top of it...
error: The following untracked working tree files would be overwritten by
mqudsi@devpc > git status --porcelain=v2 | grep eval
As currently `--autostash` only applies to files that are tracked by git, and
files not in the index are ignored.
(Additionally, with this change it makes sense to enable `--autostash` to be used
with a plain `git pull` without necessary also including `--rebase`, but I can
live without it!)