Skip to content
/ GoGit Public
forked from h-marvin/GoGit

Go script to update git repositories.

License

Notifications You must be signed in to change notification settings

timoe/GoGit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

GoGit

GoGit is a simple to use Go script allowing you to conveniently update all your local git repositories with the latest changes. You decide whether you want fetch or pull. Making use of Go's channels, found repositories will be refreshed in a non-blocking manner, which allows big amounts of repositories to be updated in no time.

Installation

Download the script:

go get github.com/h-marvin/GoGit

Navigate to $GOPATH/src/github.com/h-marvin/GoGit/ and go build the project. Move the output file GoGit to your prefered location (e.g. ~/Scripts/).

Usage

This is the easy part. Just go ahead and call the script with the options you like. Example:

~/Scripts/GoGit -recursive=true

Available flags

To customize the script at execution for your needs, there are up to four flags that can be added.

-path allows to specify the root folder from where the script will start looking for git repos (defaults to user home). Multiple root locations can be added by separating them with a colon.

-filter allows filtering for a certain value to occur in the .git/config (e.g. enterprise git address)

-recursive specifies whether or not only direct children of -path will be checked or the entire subtree

-fetch if set to true a fetch --prune will be performed instead of a pull

About

Go script to update git repositories.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%