Achi Even-dar
Achi Even-dar

Reputation: 501

undo git init when "rm -r .git" doesn't work, Windows

I am trying to undo a "git init" command in github shell on Windows 8.1.

When I write

rm -r .git

it says:

rm : Cannot remove item : You do not have sufficient access rights to perfoem this operation.

It prints it for many files.

Any ideas to solve this?

Upvotes: 1

Views: 1111

Answers (1)

Achi Even-dar
Achi Even-dar

Reputation: 501

Ok well, it just wrote it as an error, but when i have done "git init" again it initialized it, so apparently writing "rm -r .git" worked.
The project was also uploaded to github successfully (which is actually what I wanted to do in the first place, undo "git init" was just one of many "undo's" I had to do), so everything is great.

Upvotes: 1

Related Questions