Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rcruzper/zsh-git-plugin
https://github.com/rcruzper/zsh-git-plugin
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rcruzper/zsh-git-plugin
- Owner: rcruzper
- Created: 2016-04-13T11:00:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-03T18:20:06.000Z (over 5 years ago)
- Last Synced: 2024-01-24T19:33:58.138Z (5 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-zsh-plugins - git-plugin (rcruzper) - Adds some functions for `git`. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - git-plugin (rcruzper) - Adds some functions for `git`. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - git-plugin - Adds some functions for `git`. (Plugins / Zinit (née zplugin))
- awesome-zsh-plugins - git-plugin - Adds some functions for `git`. (Plugins / ZSH on Windows)
README
# Zsh Git Commands
## Installation
Add `zgen load rcruzper/zsh-git-plugin` to your .zshrc file.## Commands
### gcheckout
It allows to checkout a branch from a list of branches (git branch --all).
If you add arguments to the command, then it will be executed as 'git checkout -b *args' and a new branch will be created.### gshow
It shows the list of commits and performs a git show of the selected commit.### grebase
It performs a git rebase branch from a list of branches (git branch --all).### grebasei
It performs an interactive rebase selecting the base commit from the rebase that will be performed. (e.g. select fourth commit if you want to rebase the first three commits)### gdelete
It shows a list of merged branches with the actual branch and allows to select one to delete.### gcshow
Returns the SHA-1 of a commit from a list of commits.### gpremotes
Creates local branches of all remote branches.## Notes
If you want to get a zsh shell fully functional see my [dotfiles](https://github.com/rcruzper/dotfiles)## TODO
- [x] ~~Commands description~~
- [ ] Add git fetch to gcheckout