2

I created a new folder (myApp) locally and copied some files/folders from another reference directory/folder (which was taken from a Git repo using TortoiseGit)

Now this new folder (myApp) is also showing the tracking things or icons like green tick, cross mark, etc I want this to be removed completely (folder/sub-folders, files, etc) i.e. I just want to keep the folder locally myApp without any kind of tracking.

How can I do that ?

copenndthagen
  • 49,230
  • 102
  • 290
  • 442

1 Answers1

2

Hold the Shift-Key and open the context menu on that folder. Then select "Delete (keep local)". This unversiones the selected folder/files. Then commit these changes so that the files are removed in the repository.

If you then want that this folder/file does not appear on the commit dialog, you have to add it to the ignore list.

MrTux
  • 32,350
  • 30
  • 109
  • 146
  • Thx...I just did that...But it is now showing a red cross next to the files/folders...I just wnt it as a normal folder (nothing to do with Git) – copenndthagen Oct 12 '15 at 09:27
  • 1
    Sorry, forgot to mention that you have to commit in order to remove the files from the repository (those file are still included in the HEAD revision). – MrTux Oct 12 '15 at 13:35
  • But I do not want anything to be comitted to the remote repo. So not sure if this action will prevent that from happening? – copenndthagen Oct 13 '15 at 07:28
  • When you just copied other files into your repository and did not add them, those files are NOT versioned. – MrTux Oct 13 '15 at 08:12
  • Please add a screenshot to your question. – MrTux Oct 21 '15 at 13:07