A collection of git tools:
- Show status from projects in sub directories.
- Easy merging hotfix and feature pull requests.
Install GitOps from source.
git clone git@github.com:xtreamwayz/gitops.git
cd gitops
go install
gitops help
gitops <command> help
gitops <command> --verbose
# Check git status of current and all sub directories
gitops status
# Set upstream remote
gitops upstream git@github.com:<original_organization>/<project>.git
# Create hotfix from pull request
gitops hotfix --pr 123 [--branch master]
# Create feature from pull request
gitops feature --pr 123 [--branch develop]
# Merge hotfix / feature
gitops merge [--branch master,develop]
Run:
go run main.go
Compile and run:
go build .
.\gitops.exe
Update dependencies:
go get -u ./...
go mod tidy
Test:
go test ./...
go test -coverage -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
BEFORE you start work on a feature or fix, please read & follow the contributing guidelines to help avoid any wasted or duplicate effort.
Code released under the MIT License. Documentation distributed under CC BY 4.0.