Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ukayani/git-tool
tool to manage multiple cloned git repos in a folder
https://github.com/ukayani/git-tool
Last synced: about 6 hours ago
JSON representation
tool to manage multiple cloned git repos in a folder
- Host: GitHub
- URL: https://github.com/ukayani/git-tool
- Owner: ukayani
- License: mit
- Created: 2015-02-12T16:42:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-26T21:07:26.000Z (over 9 years ago)
- Last Synced: 2023-03-24T18:58:49.506Z (over 1 year ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# git-tool
Tool for managing multiple git repo folders
## Getting Started
1. Clone the repository
2. Cd into root folder
3. Install the module with: `npm install`
4. Create sym-link for the tool, `npm link`## Documentation
*Usage*: `git-tool [operation] [params] [--select]`* **operations**:
* pull
* checkout
* _params_: -b branchname
* push
* fetch
* status
* stash
* _params_: -a [pop|drop|list|apply]
* branch--select - use this flag to select which folders to operate on, if it is omitted, all repo folders will be selected.
Your git repositories must reside under a common parent
ex.- myrepos/
- repoA
- repoB
- repoCTo manage these repositories, use the git-tool command with your desired operation.
## Examples
To do a git pull operation on multiple repositories which are selected:
`git-tool pull --select`
To switch branch on all repositories in a folder to a release/gold branch:
`git-tool checkout -b 'release/gold'`
To retrieve the latest versioning information for selected repositories:
`git-tool fetch --select`
To stash changes on all repositories (possibly before switching branches):
`git-tool stash`
To apply changes from the latest stash for all repositories:
`git-tool stash -a apply`
To see the current branch for all repositories, as well as all the branches:
`git-tool branch`
Note: specify the --select flag if you wish to do the operation on a subset of repos within the folder you are running
the command.## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).## Release History
_(Nothing yet)_## License
Copyright (c) 2015 Umair Kayani
Licensed under the MIT license.