Copyright 2019 by Shawn Rupp
Go version 1.11 or higher
Go requires a GOPATH environment variable to set to install packages, an Hyena requires the GOBIN variable to be set as well.
Follow the directions here to set your GOPATH. Before you close your .bashrc or
similar file, add the following lines after you deifne you GOPATH:
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
Download the repository into correct Go src directory (required for package imports):
cd $GOPATH/src
mkdir -p github.com/icwells
cd github.com/icwells
git clone https://github.com/icwells/gitpuller.git
cd gitpuller
./install.sh
gitpuller will be installed to your GOBIN and will be added to your PATH.
Make a file in gitpuller directory named "config.txt". Simply list the paths to the git repostories you want to manage with gitpuller (one per line).
For simplicity's sake, the config file must remain in the gitpuller repository in your go/src directory so the binary can locate it.
gitpuller pull
gitpuller status
That's it.
See the following for storing or caching git credentials to avoid re-entering them.