2

I use git pull --rebase --autostash all the time at work (in git bash, if that matters).

But for some reason, some of my colleagues can't get it to work, and now I discovered it doesn't work at home.

At home I'm using git 2.6.3 on a macbook.

The error message is simply : error: unknown option `autostash'

Any ideas ?

yannick1976
  • 10,171
  • 2
  • 19
  • 27

1 Answers1

6

That option is only valid for Git 2.9 (June 2016)

See "Can “git pull” automatically stash and pop pending changes?"

You can add a config

git config pull.rebase true
git config rebase.autoStash true

That way, only a git pull is needed.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250