Why does "git pull --rebase" require a clean git directory?
- From
- Shupak, Vitaly <vitaly.shupak@deshaw.com>
- Date
- Dec 10, 2020, 22:15 UTC
- Message-ID
- <ea1e654cec62411884e2c260524fb05a@deshaw.com>
Hi,
"git pull --rebase" requires having NO uncommitted changes, even if the locally modified files haven't been updated upstream, or even if there are no changes to upstream at all. I know I could use --autostash, but that's inefficient and may be undesirable if it would create a conflict.
Would it be possible to change the behavior of "git pull --rebase" so that it only fails if the locally modified files conflict with the files modified upstream (similar to the default git pull behavior without --rebase)?
Thanks, Vitaly