To check the remotes added to that repo:
git remote -v
Output will be like
origin https://github.com/user/repo_name.git (fetch)
origin https://github.com/user/repo_name.git (push)
To check the remotes added to that repo:
git remote -v
Output will be like
origin https://github.com/user/repo_name.git (fetch)
origin https://github.com/user/repo_name.git (push)
Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:
# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH
# Add all the files:
git add -A
# Commit the changes: