Unlink git
Just deleting the folder is fine (or if you want to keep the code, just not have it be a git repo, then you can just delete the hidden .git folder inside) - git keeps all of the relevant metadata in there. (You don't necessarily even need to delete it - cloning a repo is essentially just downloading the contents, and git doesn't do automatic background synchronization or anything like that, so other than a few kB of metadata there's not really any cost to leaving it around.)
1 hour ago, stefanmz said:Also I noticed when I cloned it, it said the server that I used for that was added to my trusted servers list or something like that? Does that mean my MacBook has a link to the server and how do I unlink it? If it doesn't have a link then how do I remove the server from my trusted servers and also should I actually do that? Do I need to do that or do I need to just clear the folder?
The trusted servers are stored in ~/.ssh/known_hosts. The only thing it means is that if you ever connect to that server again (via SSH or git-over-SSH) you won't be prompted to verify the server key, so there's definitely no need to clean that up. If you really want to, you can edit that file to remove the corresponding entry.
1 hour ago, stefanmz said:Also I remember making an SSH key for pantheon for the Git. How do I delete that and remove it from there?
If you only created the SSH key for git, not for actually SSHing into servers, then it would be safe to delete, although again not necessary to do so. It should be stored in two parts in ~/.ssh, probably called id_rsa and id_rsa.pub (although it could also be id_ecdsa and id_ecdsa.pub, or any other name). If you're absolutely sure that you didn't use that key for anything else, you can delete both those files.
On the git server side, there should be a place in the server's configuration where you added your public key (unless you were just cloning a public repo, in which case you may not have needed to configure that) - you should be able to delete your public key from that config.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now