Skip to content
My preferred git aliases
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.markdownlint.json
README.md
add.sh

README.md

git.aliases

My preferred git aliases

Usage

Installation

Windows

Navigate to the route folder in your Bash client.

./add.sh

Aliases

Git Flow

I love git flow, but the utility requires that you type really long commands like git flow feature add <new-feature>. This is too much typing.

Features
Start Feature
git fs <feature-name>
Finish Feature
git ff

or

git ff <feature-name>
Rebase a Feature

To interactively rebase a feature branch before merging it. Make sure you arein the branch you want to rebase

git rbd
Releases
Start Release
git rs <release-name>
Finish Release
git rf <release-name>
Rebase a Release

To interactively rebase a release branch before merging it. Make sure you are in the branch you want to rebase

git rbd
Hotfixes
Start Hotfix
git hfs <hotfix-name>
Finish Hotfix
git hff <hotfix-name>
Rebase a Hotfix

To interactively rebase a hotfix branch before merging it. Make sure you are in the branch you want to rebase

git rbm

General Git

Delete all merged branches

This will remove all merged branches that are not master or develop

git cleanup
Commit
git com
Checkout
git co
Log One Line
git logo
Log Just The Commits on your Feature Branch
git logf
Log Just The Commits on your Feature Branch One Line
git logfo
Update the last commit to be timestamped to now
git touch
Update the last commit to be authored by you and timestamped to now
git plagiarise
List tags in order they were created
git tago
Combinations

Here I have shortened or combined commands that I type all the time.

alias command
git cm
git add -A
git commit
git pall
git push origin --all
git push origin --tags
You can’t perform that action at this time.