tfs - GIT and ignore existing data -



tfs - GIT and ignore existing data -

i have git repository on nas. utilize windows , linux smartgit/hg interface it. had took old repository create in tfs , convert git one, far (difficult procedure had success). new project can tell git (before first "commit") directory want exclude, converted repository automatically set in git directory heritace tfs. suppose tfs had alter of directory.

so thought can tell git ignore directory smartgit/hg seems if directory/file committed 1 time can't set ignore directory, how can tell git ignore future directory?

you need remove folder index (but not disk):

git rm --cached -r yourfolder

(see "gitignore after commit" , "how remove directory in github repository?")

then .gitignore able ignore folder.

yourfolder/

git tfs ignore

Comments

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -