ben jason
ben jason

Reputation: 11

My entire user directory is inside a master branch

I did something on my command line or git that causing my all user directory show up inside a git master branch. When I open my command line i will see ~ git:(master) ✗ and when I LS it, it would show me a list of my entire user directory on my mac. How I can get to normal command line and get my files out of master branch without deleting them?

Upvotes: 1

Views: 297

Answers (1)

Sajib Khan
Sajib Khan

Reputation: 24184

Delete the .git folder. Maybe you created the .git folder by git init command.

$ rm -rf .git

Upvotes: 1

Related Questions