How to pull out of many repo with a tortoise line?

I have many different repositories located in the same directory (about 20). I would like to stay up to date with all the rest of my commands and do git pull for all repositories every morning.

Is there a faster way than doing a “right click -> git sync -> pull" for each individual repo?

+4
source share
3 answers

No, with TortoiseGit 1.8.5. You have to pull out all repositories many times.

But you can offer this as an improvement in the TortoiseGit questionnaire.

+3
source

If your team repositories are all forks of the same canonical repo, and your local repo is another clone, then just add the team member’s fork as remote, then use git fetch with the --all flag from the command line

 git remote add coworker1 <fork-url> git remote add coworker2 <fork-url> # ... git fetch --all 

You can also get all the remote controls using TortoiseGit, but I'm not sure.

+1
source

Here is my script for synchronizing all repositories in a folder:

 @echo off pushd %~dp0 for /d %%d in ("*") do ( pushd %%d if exist ".git" tortoisegitproc /command:sync /closeonend:1 popd ) popd 

For such a directory structure:

  • /
    • tortie sync all.cmd
    • repo1 /
    • repo2 /

tortoise-sync-all will iterate over all subdirectories that have a .git folder inside, and issue a synchronization command one by one.

+1
source

Source: https://habr.com/ru/post/1501571/


All Articles