Alex A. Naanou 433faa03ab now trailing .git is properly ignored...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-11-09 00:50:41 +03:00
2024-01-09 11:44:41 +03:00
2024-10-03 15:51:12 +03:00

git-utlis

This package provides a set of git meta-porcelain commands to manage a work tree with multiple git repositories.

Provided commands:

  • git listall
    List repositories in tree.
  • git cloneall FILE
    Clone all repositories in file
  • git pullall
    Pull changes for all repositories in tree

These enable setting up and maintaining mutiple development machines with a number of git repositories.

Workflow

In a tree with multiple git repositories:

  • to pull external changes to all repositories in a tree:
    $ git pullall -r
    
  • to create the same env on a different computer:
    $ git listall -r > repos.lst
    
    move the repos.lst to the target machine and:
    $ git cloneall repos.lst
    
  • to update the repository list with new repos:
    $ git listall -r repos.lst >> repos.lst
    

Tips

  • It is convenient to manage repos.lst as symlinks to a unified directory and syncronize it between machines via someting like syncthing

License

BSD 3-Clause License

Copyright (c) 2023, Alex A. Naanou,
All rights reserved.

Description
git utilities
Readme BSD-3-Clause 56 KiB
Languages
Shell 100%