Stax is a tool that will help you a bit with day-to-day stax-like git workflow.
Main purpose is to make it easier to creat smaller PRs. And reduce amount of energy other people need to review them.
To use stax you need to install dart in your system.
Afterwards, clone this repo and put path to the repo into your PATH variable.
Let me know if you need some help, create a ticket on the repo.
Feature | Status |
---|---|
commit | ✅ |
amend | ✅ |
delete-gone-branches | ✅ |
pull | ✅ |
log | 🚧 |
rebase | 🔲 |
Would be an UI tool that will implement all features from v1.
It is a way to reduce the burden of creating commits, branches, and PRs, so it doesn't consume much of your time. As a result, you can start creating more PRs with smaller changes in them and have them reviewed easier and faster at the same time catching more bugs.
To see full list of commands, run:
stax help
Here is the list of commands currently available:
Creates branch, commits current changes with the same name as a branch, and pushes.
stax commit "two-in-one-commit-name-and-branch-name"
Result:
commit 8161c952fbed66672aff80cd3d1233589cdc3c0c (HEAD -> two-in-one-commit-name-and-branch-name, origin/two-in-one-commit-name-and-branch-name)
Author: Taras Mazepa <taras.mazepa@example.com>
Date: Fri Sep 8 14:58:04 2023 -0700
two-in-one-commit-name-and-branch-name
You can see that a branch with two-in-one-commit-name-and-branch-name
name was created as well as a commit with the same name two-in-one-commit-name-and-branch-name
.
Adds all the files to staging area
Redirects you to a create PR page
Amends to the current commit and force pushes branch
stax amend
Deletes local branches with gone remotes. Useful when you are using stax-commit
which pushes all the branches. So once they are merged and deleted from the remote you can clean up local branches.
Switching to main branch, pull all the changes, deleting gone branches and switching to original branch.
Outputs tree like structure of your branches
Will be working on creating a VS Code extension that can perform the same operations as stax on your favorite command line editor!