Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zk-phi/git-context-switch
- Owner: zk-phi
- Created: 2017-09-15T01:18:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T04:45:20.000Z (over 5 years ago)
- Last Synced: 2024-08-05T06:06:03.211Z (3 months ago)
- Topics: git
- Language: Emacs Lisp
- Homepage:
- Size: 927 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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