Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhinav/git-spice
Manage stacked Git branches
https://github.com/abhinav/git-spice
developer-tools git
Last synced: 5 days ago
JSON representation
Manage stacked Git branches
- Host: GitHub
- URL: https://github.com/abhinav/git-spice
- Owner: abhinav
- License: gpl-3.0
- Created: 2023-06-30T12:35:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T03:48:50.000Z (10 days ago)
- Last Synced: 2024-12-04T17:56:45.861Z (9 days ago)
- Topics: developer-tools, git
- Language: Go
- Homepage: https://abhinav.github.io/git-spice/
- Size: 1.96 MB
- Stars: 259
- Watchers: 7
- Forks: 18
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# git-spice
## Introduction
[![CI](https://github.com/abhinav/git-spice/actions/workflows/ci.yml/badge.svg)](https://github.com/abhinav/git-spice/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/abhinav/git-spice/graph/badge.svg?token=FE4S370I4A)](https://codecov.io/gh/abhinav/git-spice)git-spice is a tool for stacking Git branches.
It lets you manage and navigate stacks of branches,
conveniently modify and rebase them,
and create GitHub Pull Requests or GitLab Merge Requests from them.See for more details.
Usage looks roughly like this:
```shell
# Stack a branch on top of the current branch.
$ gs branch create feat1# Stack another branch on top of feat1.
$ gs branch create feat2# Submit pull requests for feat1 and feat2.
$ gs stack submit# Pull latest changes from the remote repository
# and delete merged branches.
$ gs repo sync# Restack branches on top of the latest changes.
$ gs stack restack
```Or equivalently, using [CLI shorthands](https://abhinav.github.io/git-spice/cli/shorthand/):
```shell
$ gs bc feat1 # branch create feat1
$ gs bc feat2 # branch create feat2
$ gs ss # stack submit
$ gs rs # repo sync
$ gs sr # stack restack
```## Features
- Create, edit, and navigate stacks of branches with ease.
- Submit the entire stack or parts of it with a single command.
Supports GitHub and GitLab.
- Keep using your existing workflow and adopt git-spice incrementally.
- Completely offline operation with no external dependencies
until you push or pull from a remote repository.
- Easy-to-remember shorthands for most commands.## Documentation
See for the full documentation.
## License
This software is distributed under the GPL-3.0 License:
```
git-spice: Stacked Pull Requests
Copyright (C) 2024 Abhinav GuptaThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .
```See LICENSE for details.