Am hoping to get some answers to my git problem here. My terminal for whatever reason is stuck on this master branch that I didn't even initiate. Why is that? I've uninstalled and reinstalled git several times, but it's still showing the same.
CodePudding user response:
Uninstalling Git won't delete all your repos, and it looks like you did git init
in your home directory, so Git's all set up to track absolutely everything. rm -rf .git
to remove the repo.
CodePudding user response:
Whenever you initialize a git repo, you drop a hidden .git
file inside the directory you put it in. It's possible your dropped a repo in a folder from a while ago and still have an existing .git
file. You could run an ls -lisah
or dir /a:h
(or just .g
tab complete) in order to check and then you can delete the .git
file.