login about faq

To prove you're not a spammer, email newuser.lgqa@gmail.com with the subject "Account Request" to request an account.


I started messing around with Git today. I think I've done something wrong because when I installed TortoiseGit it looks like a lot of folders in my C and F (second partition) have a green tick next to them (meaning the file is commited? I think?). What can I do to remove these ticks. Is there a way to NOT delete the actual files/folders but just a file or two that tells Windows to add a green tick to the icon? I'm a bit scared working with stuff like that on my C:. In other words - is there a way to undo the "init" action?! Please see image here http://i.stack.imgur.com/pKa1o.png I'm new to Git so sorry for non professional vocab in this question. Thanks.

asked Apr 21 '12 at 09:49

RafalChmiel's gravatar image

RafalChmiel
491141151156

closed Apr 21 '12 at 11:59

kevin's gravatar image

kevin ♦♦
35.8k161317591

The question has been closed for the following reason "The question is answered, right answer was accepted" by kevin Apr 21 '12 at 11:59


"Don't know about TortoiseGit but the git init command simply creates a (hidden) .git directory in the root of the repository and fills it with some needed files. So to undo an init all you need to do is to delete this .git directory. Note that some files in this directory can be write protected, so a warning dialog can appear. Please also note that all commits you have made in this repository will be lost (which should be no problem in your case). However I don't know if this works or is enough when using TortoiseGit…"

Source: http://stackoverflow.com/questions/10259477/how-to-remove-a-local-git-repo-from-tortoisegit/10259582 So deleting the hidden (see here how to see hidden files) .git file and restarting your computer works! Thanks.

answered Apr 21 '12 at 10:43

RafalChmiel's gravatar image

RafalChmiel
491141151156

edited Apr 21 '12 at 10:44

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×357
×349
×38
×38
×20
×3
×1
×1

Asked: Apr 21 '12 at 09:49

Seen: 1,823 times

Last updated: Apr 21 '12 at 11:59