Mark Lodato <lodatom@xxxxxxxxx> writes: > The basic steps are: > > backup .git/index > git add -a > git write-tree > git commit-tree > restore .git/index Instead of doing that, you might want to consider GIT_INDEX_FILE=...some-temporary-file... export GIT_INDEX_FILE and run everything as if that is the index throughout your script. That way, if your script ever failed in the middle, you won't have to worry about a broken index file. -- 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