MLS1984 MLS1984 - 1 year ago 87
Git Question

Setting up GitHub - resulted in massive files on local drive

I set up my first gitHub SSH key this morning and am having a few problems.

The first is that there is now a hidden .git file on my computer that is taking up 55.6GB of space.

I followed the instructions here to set up the SSH Key:

When I tried to create a new repository I’m getting errors that say “Xcode can’t verify the identity of a repository hosted on “”

At this point I’m extremely confused where I went wrong. Is it possible to delete all SSH Keys and anything local that is taking up space on my machine and start over?

File size screen:

Error on upload:

At this point, I would like to delete and SSH keys on my machine and basically start fresh. If anyone has insight on how these massive files were formed please let me know, and if there are any tips on how to make sure this doesn’t happen are greatly appreciated.

Answer Source

Git is a version control system. It allows you to control the changes on your files by making snapshots of how all your files (and then only changed files) look at the moment of the commit. You can read more how this awesome tool works here.

The problem is you have initialized or cloned a git repo on your home folder and git probably made a snapshot of all your files. You can safely rm -rf ~/.git to get rid of the repo.

Edit: Maybe you'll want to erase the code that was in the repo too. Next time you initiate a git repo, do it in a separate/isolated folder.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download