Skip to content

Handy scripts when working with [multiple] git repos

Notifications You must be signed in to change notification settings

jhansireddy/git_scripts

 
 

Repository files navigation

git_scripts

These are some scripts that I use constantly when dealing with multiple git repositories. They are typically run from the common parent directory. Currently, they are hardcoded to only peek into the first level of child directories, find all directories that are git repositories and run the commands.

Example usage:

Any command can be run whether they are specific to the shell that you are currently using or git commands. These commands are run within the context of each child git repository. For eg, to get the git status of all git repos, I run:

run_all git status

To clean all git repos, I run:

run_all git clean -fxd

To run the git remote prune command, I run:

run_all git remote prune origin

and so on (you get the idea)

About

Handy scripts when working with [multiple] git repos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 65.7%
  • Shell 29.4%
  • PowerShell 4.9%