Jeff King <peff <at> peff.net> writes: > > > cd /path/to/copy > > rm -rf * > > cp -a /path/to/new/version/* . > > git add -A > > git commit -m 'update foo to 2.0' > > Nit: "rm -rf *" will miss files starting with '.'. So it is probably > simpler to say what you mean: delete all files managed by git: > > git ls-files -z | xargs -0 rm -f > > -Peff But maybe one wants to keep a .gitignore file. Regrads, Stefan -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html