A customized collection of Git aliases focused on topic branch and Jira workflow management, based on the comprehensive GitAlias project.
There are two ways to install these Git aliases.
Note: The configuration file is named
.kimi.gitalias.ini
, but feel free to rename it to any name you prefer (e.g.,.my.gitalias.ini
). Just make sure to use the same name in both the download/copy command and thegit config
command.
# Download and install directly to your home directory
curl -o ~/.kimi.gitalias.ini https://raw.githubusercontent.com/kimicla/gitalias/main/kimi.gitalias.ini
git config --global include.path "~/.kimi.gitalias.ini"
# Verify installation
git aliases # Should list all available aliases
- Clone this repository:
git clone https://github.com/kimicla/gitalias.git
cd gitalias
- Include the aliases in your global Git config:
# Recommended: Copy to your home directory (works on all systems)
# For Unix/Linux/macOS
cp kimi.gitalias.ini ~/.kimi.gitalias.ini
# For Windows (using Command Prompt)
copy kimi.gitalias.ini %USERPROFILE%\.kimi.gitalias.ini
# For Windows (using PowerShell)
copy kimi.gitalias.ini $HOME\.kimi.gitalias.ini
# Then configure Git to use it
git config --global include.path "~/.kimi.gitalias.ini"
Most frequently used commands:
git get # Update your branch
git ss # Quick status check
git aa # Stage all changes
git cm # Commit with message
git push1 # Push to remote
For detailed workflow instructions, please check our Workflow Guide.
- Workflow Guide - Comprehensive daily Git workflow guide
- Original GitAlias - Full collection of Git aliases
git a
- Short forgit add
git b
- Short forgit branch
git c
- Short forgit commit
git d
- Short forgit diff
git f
- Short forgit fetch
git l
- Short forgit log
git m
- Short forgit merge
git o
- Short forgit checkout
git p
- Short forgit pull
git s
- Short forgit status
git aa
- Add all changesgit ap
- Add changes interactively (patch)git cm
- Commit with messagegit ca
- Amend last commitgit cane
- Amend last commit without editing message
git ss
- Short statusgit ssb
- Short status with branch infogit bv
- Branch list with detailsgit bvv
- Branch list with upstream info
git reset-commit
- Soft reset of last commitgit reset-commit-hard
- Hard reset of last commitgit uncommit
- Undo last commitgit unadd
- Unstage changesgit discard
- Discard changes in working directorygit cleanout
- Clean and reset working directory
git get
- Fetch, pull with rebase, and update submodulesgit put
- Commit all changes and pushgit push1
- Push current branch to origingit pull1
- Pull current branch from origingit pushy
- Force push with lease (safer than --force)
git lg
- Log with graphgit lo
- Log one line per commitgit ll
- Detailed log with graph and formattinggit who
- Show contributor statistics
git setup
- Sets up Git aliases by configuring the topic base branch and Jira prefixgit set-topic-branch
- Prompts for and sets the desired topic base branch name globallygit set-jira-prefix
- Prompts for and sets the desired Jira prefix (globally or locally)
git topic-base-branch
- Shows the topic base branch name from config or defaults to default branchgit topic-begin <branch-name>
- Starts a new topic branchgit topic-end
- Completes work on current topic branch
git jira <prefix> <id> <description>
- Creates a new branch with Jira formattinggit jira-rebase
- Rebases current Jira topic branch onto the base topic branch
git publish [remote]
- Publishes current branch to remotegit unpublish [remote]
- Removes current branch from remote
git wip
- Saves work in progressgit unwip
- Restores from work in progress
git snapshot
- Stash changes while keeping them in working directory
git aliases
- List all configured aliasesgit panic
- Create emergency backup tarball
git default-branch
- Shows the default branch namegit current-branch
- Shows the current branch name
For detailed workflow instructions and best practices, please refer to our Workflow Guide. This guide includes:
- Daily workflow procedures
- Code review process
- Handling urgent bugs
- Best practices
- Commit message conventions
- Common operations and scenarios
This is a focused subset of aliases based on the excellent GitAlias project. The original project contains hundreds of additional aliases and is available under GPL-2.0-or-later license.
For the full collection of Git aliases and documentation, please visit:
This customized subset inherits the GPL-2.0-or-later license from the original GitAlias project.