e788b1 / always.empty

thanksgiving

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tips

  • exclude everything except directory foo/bar
/*
!/foo
/foo/*
!/foo/bar
  • Show ignored files in git cache by .gitignore
git ls-files -i --exclude-from=/.gitignore
  • ignore and remove file in git only (use --cached)
echo -e \!file >> /.gitignore
git ls-files -i --exclude-from=/.gitignore | xargs git rm -r --cached

About

thanksgiving


Languages

Language:Shell 62.0%Language:Vim Script 26.4%Language:Lua 7.8%Language:Python 3.1%Language:Nginx 0.5%Language:CSS 0.1%Language:Mask 0.0%