https://github.com/cmccandless/supergit
Git aliases for the power user
https://github.com/cmccandless/supergit
Last synced: 3 months ago
JSON representation
Git aliases for the power user
- Host: GitHub
- URL: https://github.com/cmccandless/supergit
- Owner: cmccandless
- License: mit
- Created: 2018-10-02T17:14:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T14:48:42.000Z (over 6 years ago)
- Last Synced: 2025-01-13T03:12:13.780Z (5 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# supergit
Git aliases for the power user## Installation
```
git clone https://github.com/cmccandless/supergit.git ~/.supergit &&
echo 'source ~/.supergit/supergit.sh' >> ./.bashrc
```## Updating
`supergit update`
## Commands
### supergit
- `supergit version`
- `supergit help`
- `supergit update`### git-pushd / git-popd
Like pushd, but for git refs. `git pushd` has the same tab-completion as `git checkout`
```Bash
$ git branch
* master
$ git pushd HEAD^
M README.md
Note: checking out 'HEAD^'.You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:git checkout -b
HEAD is now at 8a739da Initial commit
$ git popd
M README.md
Previous HEAD position was 8a739da Initial commit
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
```## Other aliases
- `g=git`
- `sgit=supergit`