punated
punated

Reputation: 51

I initiated git in my Documents directory on my Mac

Can I remove it? in the Mac finder, this is a root directory, so I don't know how to get to where the .git file is to remove it.

Upvotes: 0

Views: 320

Answers (2)

georgexsh
georgexsh

Reputation: 16634

in the Finder window, press ., then dotfiles will show up, you could delete .git as you want, it might be ~/Documents/.git. just press it again to hide dot files again.

Upvotes: 4

geek_guy
geek_guy

Reputation: 607

Git keeps all of its files in the .git directory. Just remove that one.

rm -rf ~/Documents/.git will do it.

Upvotes: 3

Related Questions