Created
October 19, 2016 14:19
-
-
Save cbmeeks/bd6dcbaba62061c5c2d55a1c0d3a7a48 to your computer and use it in GitHub Desktop.
Backup GitHub public repos into folders: YYYY_MM_DD_HHmm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Create folder that is to the minute in YYYY_MM_DD_HHMM format | |
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a | |
set now=%dt:~0,4%_%dt:~4,2%_%dt:~6,2%_%dt:~8,2%%dt:~10,2% | |
mkdir %now% | |
chdir %now% | |
rem Pull down repos | |
svn export https://github.com/jacgoudsmit/L-Star.git | |
svn export https://github.com/kencogroup/River-Raid.git | |
chdir .. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment