# nice to have, just sharing - cannot pull with rebase: You have unstaged changes

2 messages from 2021-09-19 to 2021-09-20. Participants: Jason Pyeron, Carlo Arenas.
Thread: https://gitlist.dev/t/56539

## Jason Pyeron, 2021-09-19 20:26

Subject: nice to have, just sharing - cannot pull with rebase: You have unstaged changes
Message-ID: <375601d7ad94$9eccb5a0$dc6620e0$@pdinc.us>
URL: https://gitlist.dev/e/375601d7ad94%249eccb5a0%24dc6620e0%24%40pdinc.us

```
It would be nice if it did the fetch to discover the Current branch master is up to date before failing with You have unstaged changes.

If someone does it, send me a bill for a nice dinner - bounty offered. I wish I had more time.

$ git pull -r
error: cannot pull with rebase: You have unstaged changes.
error: please commit or stash them.

$ git stash
Saved working directory and index state WIP on master: 2134bc6 corrected acronym: ACCIDENT: Assessment, Compliance, Correlation, and Incident response for the DoD ENTerprise

$ git pull -r
Current branch master is up to date.

$ git stash pop
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

--
Jason Pyeron  | Architect
PD Inc        | Certified SBA 8(a)
10 w 24th St  | Certified SBA HUBZone
Baltimore, MD | CAGE Code: 1WVR6
 
.mil: jason.j.pyeron.ctr@mail.mil
.com: jpyeron@pdinc.us
tel : 202-741-9397




```

## Carlo Arenas, 2021-09-20 16:28

Subject: Re: nice to have, just sharing - cannot pull with rebase: You have unstaged changes
Message-ID: <CAPUEsph-n0EEK_HjJoynKvq1H8Uijq9FZsVNmkp7v9LU9WLDNQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAPUEsph-n0EEK_HjJoynKvq1H8Uijq9FZsVNmkp7v9LU9WLDNQ%40mail.gmail.com
In-Reply-To: <375601d7ad94$9eccb5a0$dc6620e0$@pdinc.us>

```
$ git config --global rebase.autostash

will probably help you already without extra code IMHO

Carlo

```
