[TYPO3-dev] Preventing git from deleting any file in typo3conf, fileadmin etc.

Kay Strobach typo3 at kay-strobach.de
Wed Nov 30 20:25:52 CET 2011


OK Using the following command - i finally found it:

git ls-files --others --ignored --exclude-standard --directory

the solution is to change the file like in the following listing:

# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~

.idea/*
.htaccess


fileadmin*
typo3conf*
typo3temp*
uploads*






Am 30.11.2011 18:40, schrieb Kay Strobach:
> Hello guys,
> 
> i thought the following setup would ensure, that git won't touch any
> file in the given folders. Sadly git drops files from typo3conf/ext :(
> 
> My Setup
> Git on Windows 7 64bit:
> 
> .git\info\exclude with following content:
> 
> # git ls-files --others --exclude-from=.git/info/exclude
> # Lines that start with '#' are comments.
> # For a project mostly in C, the following would be a good set of
> # exclude patterns (uncomment them if you want to use them):
> # *.[oa]
> # *~
> 
> .idea/*
> .htaccess
> fileadmin/*
> typo3conf/*
> typo3temp/*
> uploads/*
> 
> So what i'm doing wrong.
> 
> It seems, that git stash and git reset HEAD^ cause the problem :(
> 
> Regards
> Kay
> 


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answere was usefull: https://flattr.com/profile/kaystrobach



More information about the TYPO3-dev mailing list