• github, pulling multiple sub directories

    From Android8675@VERT/SHODAN to all on Thu Aug 10 10:53:32 2017
    So I'm goofing on my board updating some git repositories (running git pull),ãand was thinking... Gotta be a .bat file for this (I'm sure the bash folks gotãthis covered, but Windows folk might find a use for it.)ããI only recently learned about the DOS "FOR" command which apparently has beenãaround since DOS v5'ish (who knew? Not I!), so I finally broke down the commandãand figured out how it works then came up with a quick .bat file that scans allãsubfolders from where you call the .bat file, looks for the .git folder of aãrepository and runs "git pull".ããGot a bunch of repositories in a subfolder, just call this .bat and get allãyour git repos updated.ããPrereq: Gotta be able to call "git" from dos/cmd prompt.ãDisclaim: Don't nuke your HD accidentally, please.ãã--start--ã@echo offãset oldcd=%CD%ãecho Scanning sub-folders off %oldcd% for .git projects and pulling...ãfor /d /r . %%d IN (.git) do @if exist "%%d" (echo Pulling @ %%~fd... && git -Cã%%~fd\.. pull)ãcd %oldcd%ã--end--ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.com (Port 2323 for Nethack)ã
  • From poindexter FORTRAN@VERT/REALITY to Android8675 on Thu Aug 10 13:58:19 2017
    Re: github, pulling multiple sub directoriesã By: Android8675 to all on Thu Aug 10 2017 10:53 amããAn> I only recently learned about the DOS "FOR" command which apparently hasãAn> been around since DOS v5'ish (who knew? Not I!)ããThe Fidonet BATPOWER echo used to be a great place for tips and tricks for DOSãand 4DOS; I picked up two books that I swore by in the 80s again - RunningãMS-DOS and Superchaging MS-DOS, by Van Wolverton, published by Microsoft Press.ãThey were indispensible references when I was writing batch files at work andãhelped back in the BBS day when I was running everything with a batch file,ãmailer and using errorlevel exits to run events.ãã---ã þ Synchronet þ realitycheckBBS -- http://realitycheckBBS.orgã