../my-git-alias

自用 git alias, function

Published:

git tools alias function

自用 git alias,function

默认

使用 oh-my-zsh git plugin . 自带了一些配置.

查看

alias | grep git 

工作流

function gcbf() {
    git checkout -b feature/$1
}

function gcbb() {
    git checkout -b bugfix/$1
}

提交信息

参考 gitmoji

# commit with feature emoji
function gcamf() {
    git commit -a -m ":sparkles: $1"
}

function gcamb() {
    git commit -a -m ":bug: $1"
}

function gcamd() {
    git commit -a -m ":memo: $1"
}

function gcamr() {
    git commit -a -m ":recycle: $1"
}

function gcamc() {
    git commit -a -m ":wrench: $1"
}

FULL


function gcbf() {
    git checkout -b feature/$1
}

function gcbb() {
    git checkout -b bugfix/$1
}

# commit with feature emoji
function gcamf() {
    git commit -a -m ":sparkles: $1"
}

function gcamb() {
    git commit -a -m ":bug: $1"
}

function gcamd() {
    git commit -a -m ":memo: $1"
}

function gcamr() {
    git commit -a -m ":recycle: $1"
}

function gcamc() {
    git commit -a -m ":wrench: $1"
}