Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zk-phi/git-context-switch

context switch for git
https://github.com/zk-phi/git-context-switch

git

Last synced: 3 days ago
JSON representation

context switch for git

Awesome Lists containing this project

README

        

# git-context-switch

*git-context-switch is a context switch for git*

git-context-switch makes git able to manage multiple branch-lists and stash-lits (called "context").

## Demo

![Demo](screencast.gif)

## Dependencies

Emacs (>=24), as an interpreter.

## Installation

Make `git-context-switch.el` executable visible from PATH

```
cp git-context-switch.el /usr/local/bin/git-context-switch
chmod +x /usr/local/bin/git-context-switch
```

and (optionally) add an alias to `~/.gitconfig`.

```
[alias]
context = "!f() { git-context-switch $*; }; f"
```

## Usage

git-context-switch have following subcommands:

* `git context` ... Show current context name
* `git context list` ... Show list of all all contextsx.
* `git context create ` ... Create new context.
* `git context delete ` ... Delete context.
* `git context switch ` ... Switch to context.
* `git context show ` ... Show list of branches.
* `git context mv ` ... Move branch to context.
* `git context cp ` ... Copy branch to context.

`mv` and `cp` commands accept following arguments in addition:

* `mv foo-context:foo-branch bar-context` ... Specify context to move (copy) branch from
* `mv foo-branch bar-context:foofoo-branch` ... Specify branch name to move (copy) to