https://github.com/alessandroargentieri/git-aliases
Stunning git aliases collected in years of crazy terminal git usage!
https://github.com/alessandroargentieri/git-aliases
bash git
Last synced: 3 months ago
JSON representation
Stunning git aliases collected in years of crazy terminal git usage!
- Host: GitHub
- URL: https://github.com/alessandroargentieri/git-aliases
- Owner: alessandroargentieri
- Created: 2022-07-05T09:06:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T12:46:03.000Z (over 1 year ago)
- Last Synced: 2025-05-13T14:50:50.620Z (about 1 year ago)
- Topics: bash, git
- Language: Shell
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git aliases
```text
▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄
█ █ █ █ █ █ █ █ █ █ █ █ █
█ ▄▄▄▄█ █▄ ▄█ █ ▄ █ █ █ █ ▄ █ ▄▄▄▄▄█ ▄▄▄█ ▄▄▄▄▄█
█ █ ▄▄█ █ █ █ █ █▄█ █ █ █ █ █▄█ █ █▄▄▄▄▄█ █▄▄▄█ █▄▄▄▄▄
█ █ █ █ █ █ █ █ █ █▄▄▄█ █ █▄▄▄▄▄ █ ▄▄▄█▄▄▄▄▄ █
█ █▄▄█ █ █ █ █ █ ▄ █ █ █ ▄ █▄▄▄▄▄█ █ █▄▄▄ ▄▄▄▄▄█ █
█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄█▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█
```
A series of stunning git aliases to improve your productivity while using git with your terminal.
## Install the aliases
### Prerequisites
The pre-requisites to install the git aliases are:
- having [git]("https://git-scm.com/") installed (of course!)
- have [curl]("https://curl.se") installed
### Install
To install the git aliases proceed with:
```bash
$ curl -s 'https://raw.githubusercontent.com/alessandroargentieri/git-aliases/main/install.sh' | bash
```
### Enjoy!
You can take advantage of the git aliases!
```bash
# checkout on a branch you partially remember the name!
$ git checkabout oauth2
Switched to branch feature/DASH-123_implementing-oauth2-on-rest-services
# check which commits your local branch is behind the remote one!
$ git behind
1068a729b fix on login service
8fb60506a update dependencies
# add only modified files (not untracked ones)!
$ git addmod
# stage tracked and untracked files with a message!
$ git wip 'oauth2-wip'
# re-apply the changes based on the message!
$ git wip-apply 'oauth2-wip'
# get the latest semantic versioning tag
$ git lasttag
v1.2.3
# push force a remote branch into another (new or existing) WITHOUT cloning it locally!
$ git remote2remote feature1 feature1-backup
# ... and many more...
```
## Documentation
To understand which aliases are available and how to use them, check the comments in the `install.sh` file.