Hi Ralph,

Yep, that would be sufficient.

I usually go `rm -rvf .git`. (The `-f` is required since by default all the
Git objects are readonly.)

If you want to make sure it is erased completely and cannot be recovered
use `shred` or `srm`. The usual methods like `rm` or emptying the trash
just remove the *addresses* of the files and folders. They don't actually
destroy the file contents.

~ Tim


On Mon, Dec 04, 2017 at 04:58:07PM -0800, Ralph Palmer wrote:
> Greetings - I made some mistakes in the way I set up my initial repository, 
> and I'd like to start from scratch. How can I completely remove a 
> repository so I can start over? I'm running git from the command line on 
> Linux Ubuntu. Can I simply send the .git directory to the trash and empty 
> the trash? Thanks in advance for your help.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to