Skip to content

kocierik/GitPullAll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

gitPullAll

This script will find all Git repositories under your home directory and update them accordingly. It switches to the main branch and pulls the latest changes if the -m flag is provided; otherwise, it updates the current branch.

Usage

Give permission:

chmod +x gp.sh

add to somewhere in your path

/usr/local/bin/

This script accepts an optional -m flag to indicate that you want to pull the main/master branch instead of the current branch

To update all repositories with their current branches:

./gp.sh

To update all repositories with the main/master branch:

./gp.sh -m

Releases

No releases published

Packages

No packages published

Languages