Git rebase "unable to creat
2019-05-22 本文已影响0人
JaedenKil
In a regular operation, git rebase master
gave an error:
error: unable to create file xxx: Permission denied
Google a bit, found some possible reasons:
- More than one
git bash
instances(all points to the current project) are available, maybe even you opened agit bash
in the IDE. - Some of the files in the project are being edited, say 'Notepad++', while
git rebase
is trying to edit the file at the same time. - Simply the IDE is preventing the changes.
In my case, close the IDEVisual Studio Code
,git rebase
will work fine.