Hb4GitAliasesShortcut - 101camp/playground GitHub Wiki

Hb4GitAliasesShortcut Git 命令简化配置

目的

  • 简化以下几行常用命令
    • $ git pull origin master BRANCH: BRANCH
    • $ git status
    • $ git add .
    • $ git commit -a ""
    • $ git push origin master BRANCH: BRANCH

步骤

  • Add the following to the .gitconfig file in your $HOME directory.
a = add
c = commit
aa = add .
cm = commit -m
pl = pull origin
ps = push origin
st = status

简化

  • 简化以下几行常用命令
    • $ git pl BRANCH: BRANCH <- $ git pull origin BRANCH: BRANCH
    • $ git st <- $ git status
    • $ git aa <- $ git add .
    • $ git cm <- $ git commit -m ""
    • $ git ps BRANCH: BRANCH <- $ git push origin BRANCH: BRANCH

Changelog

  • 2020-05-18 14:38:34 bear init
⚠️ **GitHub.com Fallback** ⚠️