src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 542 forks source link

git add: Access is denied. #1155

Open maxwellhertz opened 5 years ago

maxwellhertz commented 5 years ago

The OS is windows 10. I wanted to git add with following code:

_, err := w.Add(filename)

However, an error occurred:

rename file: Access is denied.

I am new here. Could anyone help?

xoac commented 5 years ago

I struggle the same error. Implementation just works fine on Linux. And manually works on Windows. (Using git bash).

@maxwellhertz Did you resolve your problem?

maxwellhertz commented 5 years ago

I struggle the same error. Implementation just works fine on Linux. And manually works on Windows. (Using git bash).

@maxwellhertz Did you resolve your problem?

No, I just gave up.:joy: At first I wanted to write a program to automate my everyday git stuff but I couldn't turn this problem around. So I changed my mind and started using Github desktop instead.:sweat_smile: