Re: [git-users] How to remove folder and it's contents from repo

2014-11-04 Thread Dale R. Worley
> From: citm09 

> Currently my repo contains all these _notes folder located under different 
> folders in this tree structure. How do I remove these _notes folder and 
> it's contains. I do not want Git to track these _notes folders and it's 
> contents.

What you need to do is put "_notes" in the top-level .gitignore file.
That will cause Git to ignore all of the _notes directories.

What I don't know is how to delete the record of the existing "_notes"
directories from the current commit, without deleting them from the
working tree.  Ah, what you want is "git rm --cached -r".  This would
work (if you were on some flavor of Un*x):

git rm --cached -r $( find . -name _notes )

Dale

-- 
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 git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] How to remove folder and it's contents from repo

2014-11-04 Thread citm09
Hi there,

I'm new to git. I created a repo. I use Dreeamwever as editor and it 
creates _notes subfolder inside each folder of a website. The _notes 
folders are created by Dreamweaver to maintain synchronization information 
and for Design Notes. This _notes folder is created at various level of web 
site  structure. E.g
\
_notes
folder1
|-_notes
|-folder2
 |-_notes
 |-folder3
  |-_notes

Currently my repo contains all these _notes folder located under different 
folders in this tree structure. How do I remove these _notes folder and 
it's contains. I do not want Git to track these _notes folders and it's 
contents.

Thanks,
Joe




-- 
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 git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.