Skip to content

Instantly share code, notes, and snippets.

View ciatph's full-sized avatar
🌴
On vacation

ciatph ciatph

🌴
On vacation
View GitHub Profile
@ciatph
ciatph / git-export.bat
Last active August 20, 2019 14:44
Export the HEAD of a git repository to a specified directory or path.
::---------------------------------------------------------------------
:: A windows executable batch file that exports (checkout-index) the
:: current HEAD of a git repository to a specified directory.
:: - Uses relative directory access in case full path is not supplied.
:: - Exports contents to an "/export" directory inside the repository if no
:: argument is supplied
:: - Creates the entered directory if it does not yet exist
:: Dependencies: GitBash
:: madbarua;20180920
::---------------------------------------------------------------------