gitplus

command module
v0.1.1-0...-ad56a01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 13 Imported by: 0

README

gitplus

Gitplus is a collection of helper tools to augment git, making certain workflows and common tasks easier.

Installation

First, install the program:

go install github.com/cespare/gitplus@latest

Now you can run gitplus -h to see a list of commands an invoke them as, for example,

gitplus rename-branch args...

Another way to use the tool is to make symlinks in your $PATH that point at gitplus. If gitplus is invoked with the name git-foo, then it runs the foo command. For example, you might have a git-rename-branch symlink that points at gitplus. Then you can run

git rename-branch args...

instead.

git rename-branch

You can rename a local branch with git branch -m, but if it has a tracking branch you usually want to rename that too. git rename-branch renames a local branch as well as the remote tracking branch (if it has the same name).

TODO

  • rename-branch shouldn't push to the remote when it renames it
  • repush: rebase and push (in a loop)
    • And delete local branch?
    • And delete remote branch? (GH can do this automatically, but it isn't on by default)
  • chain: print a chain of branches
  • chain-push: push all the branches in the chain with remote tracking branches
  • chain-repush: repush the bottom-most branch of the chain; rebase the rest
  • All the chain stuff works in tandem with git rebase --update-refs

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL