jrobinsonc
10/17/2016 - 2:49 PM

GIT tips

GIT tips

Export a specific commit with git-archive.

git archive --format zip --output /full/path/to/zipfile.zip 29435bc

Backup untracked files.

git ls-files --others -i --exclude-standard | xargs zip untracked-files.zip