Skip to content

Instantly share code, notes, and snippets.

@benjaminvanrenterghem
Created September 21, 2022 07:08
Show Gist options
  • Save benjaminvanrenterghem/d3c60e196e9dde58e05b0e229819eee8 to your computer and use it in GitHub Desktop.
Save benjaminvanrenterghem/d3c60e196e9dde58e05b0e229819eee8 to your computer and use it in GitHub Desktop.

Revisions

  1. benjaminvanrenterghem created this gist Sep 21, 2022.
    12 changes: 12 additions & 0 deletions Sync_Repositories
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    cd D:/Cronjobs
    D:

    robocopy SOURCE_FOLDER_HERE TARGET_FOLDER_HERE /E /COPYALL /IS /IT /IM /LOG:robocopy.log /XD SOURCE_FOLDER_HERE\.git

    cd TARGET_FOLDER_HERE

    git add --all

    git commit -am "Autosync"

    git push