mgr-tools
v0.0.11
Published
Manage your multiple git repositories
Readme
MGR Tools (Multiple Git Repositories Tools)
MGR Tools are collection of useful command for working with multiple git repositories simultaneously.
Install
Run npm install -g mgr-tools
Commands
mgr
Shows the list of all repositories in the directory with local changes.
mgr -detail or mgr -d
Same as mgr with a detailed list of changed files for every repository.
mgr branch
Shows the currently checked out branches for every repository in the directory.
mgr branch:branchName [-no-checkout] [-with-changes]
Creates new branch named branchName in every repository.
When run with -no-checkout attribute, it only creates the new branch without checking it out. Your current working branch stays the same as before.
When run with -with-changes attribute, it only creates the branch in the repositories whit local changes.
mgr checkout:branchName
Switches to branch branchName in every repository.
When run without branch name, it shows the currently checked out branches, same as mgr branch
mgr commit -m "your commit message" [-staged] [-ibn] [-ifbn]
Commits all changes in all repositories with a common commit message.
When run with -staged attribute, it only commits stages files.
When run with -ifbn (include full branch name), automatically adds the full branch name to the commit message.
When run with -ibn (include branch name), automatically adds the last part (after last '/') of the branch name to the commit message.
mgr target
Copies all changed and new files to the taget/dev directory. Does not copy .less files.
