Last active
December 10, 2015 13:09
-
-
Save litodam/4439378 to your computer and use it in GitHub Desktop.
Git commands
This file contains hidden or 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
REM git clone repo --mirror first | |
REM If running this in a batch file, replace %R by %%R | |
for /F "tokens=1 delims=/" %R in ('git branch') do git push github %R --tags |
This file contains hidden or 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
REM git clone first | |
REM If running this in a batch file, replace %R by %%R | |
for /F "tokens=2 skip=1 delims=/" %R in ('git branch -r') do git branch %R --track origin/%R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment