在~/ 目录下创建文件
touch .bash_aliases
vim .bash_aliases
添加下行
alias gitst="git status"
然后source .bashrc即可生效
~/git/test$ gitst
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
在~/ 目录下创建文件
touch .bash_aliases
vim .bash_aliases
添加下行
alias gitst="git status"
然后source .bashrc即可生效
~/git/test$ gitst
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean