Skip to content

Automatically run git commands in multiple git repositories

Notifications You must be signed in to change notification settings

ealtintas/my-git-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

my-git-all.sh

Turkish: Bash ile yazılmış bu betik, argüman olarak aldığı git komutlarını git deposu içeren tüm alt dizinler (".git" dizini varsa) altında çalıştırır. Örneğin "my-git-all pull" komutu ile mevcut dizin altındaki binlerce git reposunu kolay ve hızlı bir şekilde güncelleyebilirsiniz.

Description

Automatically run git commands in multiple git repositories

Info

This is a simple bash script which takes git commands as its arguments and it runs those commands under all the sub directories which contains a git repository (where a ".git" directory exists).

If you have many git repositories you can group them under directories. This way you can run the same git command on all those repositories at once using this script which will save your time.

There are some optional parameters to control the actions of this script.

I have written this script to manage my local git repositories easly. It saved me a lot of time. I hope it will be usefull for you too.

Usage

usage: my-git-all.sh [--optional-parameter] [actual git command]

optional parameters:

  --dry : dont run the commands actually just show information
  --silent  : dont print any additional information
  --showremote  : show remote repository address (default action dont show)
  --nolocal : dont show local repository adress (default actio show local repo adress)

Examples

my-git-all pull   # updates all the git repositories under current directory
my-git-all status
my-git-all status --short
my-git-all --noremote status --short

About

Automatically run git commands in multiple git repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages