You can just delete .git. Typically:
rm -rf .git
Then, recreate as the right user.
More Related Contents:
- How to fully delete a git repository created with init?
- What’s the difference between HEAD^ and HEAD~ in Git?
- How do you stop tracking a remote branch in Git?
- Atlassian “logo” after pushing to bitbucket
- Rebasing a branch including all its children
- What’s the best visual merge tool for Git? [closed]
- Preferred Github workflow for updating a pull request after code review
- How to list ALL git objects in the database?
- Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”
- How to remove files from git staging area?
- ssh: connect to host github.com port 22: Connection timed out
- How are commits counted by the GitHub contributions graph?
- Locking binary files using git version control system
- How to unpack all objects of a git repository?
- How to deal with Git “Could not read” error
- How do I view a git repo’s receive history?
- Get back the changes after accidental checkout?
- Rebase feature branch onto another feature branch
- How do you change the capitalization of filenames in Git?
- What is difference between ‘git reset –hard HEAD~1’ and ‘git reset –soft HEAD~1’?
- How to make git diff –ignore-space-change the default
- How can I mark a committed file as read-only in Git?
- How do I remove a single file from the staging area (undo git add)?
- How do I run git log to see changes only for a specific branch?
- How to resolve git’s “not something we can merge” error
- List Git commits not pushed to the origin yet [duplicate]
- Git equivalents of most common Mercurial commands?
- Jenkins Git plugin detached HEAD
- git merging branches in a bare repository
- Can tags be automatically moved after a git filter-branch and rebase?