https://github.com/josefpihrt/gitalias
Managed list of Git aliases
https://github.com/josefpihrt/gitalias
alias git git-cli productivity
Last synced: 7 months ago
JSON representation
Managed list of Git aliases
- Host: GitHub
- URL: https://github.com/josefpihrt/gitalias
- Owner: josefpihrt
- Created: 2022-07-21T13:14:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T17:34:42.000Z (about 2 years ago)
- Last Synced: 2025-03-27T04:33:31.783Z (8 months ago)
- Topics: alias, git, git-cli, productivity
- Homepage: https://josefpihrt.github.io/docs/gitalias/
- Size: 166 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Gitalias 
## Summary
Essential goal of Gitalias is to turns [git](https://git-scm.com/) command into shortest possible sequence of characters (an alias) where the alias does not have to be remembered but it can be mnemotechnically derived from the full command.
## Documentation
https://josefpihrt.github.io/docs/gitalias
## Usage
- Copy [list of aliases](https://raw.githubusercontent.com/JosefPihrt/gitalias/main/alias.gitconfig) and paste it to your [.gitconfig](https://git-scm.com/docs/git-config) file.
### Usage Example
#### Implement feature on a new branch
```sh
git th # reset --hard
git sm # switch main
git l # pull
git sc feature/foo # switch --create feature/foo
# Implement feature ...
git aa # add --all
git cm "Implement foo" # commit --message "Implement foo"
```
#### Create and Merge PR
Use GitHub CLI or web UI ...
#### Clean feature branch
```sh
git sm # switch main
git l # pull
git opo # remote prune origin
git bdf feature/foo # branch --delete --force feature/foo
```