Go to file
2021-11-07 00:43:53 +01:00
app Add status command 2021-11-06 17:54:27 +01:00
commands Use local repository for SyncCommand tests 2021-11-07 00:43:53 +01:00
config Add status command 2021-11-06 17:54:27 +01:00
go.mod Add status command 2021-11-06 17:54:27 +01:00
go.sum Add sync command 2021-11-03 18:10:36 +01:00
main.go Add sync command 2021-11-03 18:10:36 +01:00
README.md Add status command 2021-11-06 17:54:27 +01:00

Git repositories manager

Sync your repositories with single click

Usage

Create a yaml file with the given structure

# Place where your repositories should be saved
workspace: ${HOME}/workspace 
# List with repositories, that you want to manage with GRM
repositories:
- src: "git@github.com:Revalus/GitRepositoryManager.git"
  name: GRM     # Optional, Uniq - if no name is specified, the repository will be treated as a name
  dest: manager # Optional, Uniq - if no value is specified, name will be taken as destination 

Note

By default, the config file is searched for in [HOME_DIR]./config/grm/config.yaml.

Commands and arguments

Global args

argument type default Description
-c, --config-file string [HOME_DIR]./config/grm/config.yaml Path to configuration file, where the repositories must be specified

Commands

command Description
sync Fetches changes from repositories or pulls a repository if one does not exist.
status Get repository information - what is the current branch, how many commits are above and behind it for each remote.

Changelog

  • 0.2.0 Add status command - get information about the current status in the repository
  • 0.1.1 Allow to use env vars in config
  • 0.1.0 Add sync command - allow to fetch and clone repositories