平时在使用 svn 时习惯使用 ci(commit)、co(checkout) 、st(status)等简洁的命令,但是在 Git 中没有提供这些简洁的命令,不过 Git 提供了别名机制,使用别名机制可将复杂的命令变的简洁。
git config --global alias.ci commit
git config --global alias.co checkout
git config --global alias.st status
git config --global alias.br branch
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Git别名配置简化常用命令
本文介绍如何在Git中通过配置别名机制来简化常用的复杂命令,如commit、checkout和status,使操作更加便捷。
828

被折叠的 条评论
为什么被折叠?



