Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git 使用小技巧 #2

Open
littleluckly opened this issue Aug 22, 2019 · 0 comments
Open

git 使用小技巧 #2

littleluckly opened this issue Aug 22, 2019 · 0 comments

Comments

@littleluckly
Copy link
Owner

git 使用技巧

1. git 别名配置,提高效率

把经常使用的名称配置一个别名,可以有效提高工作效率,如 checkout 配置别名 ck, 配置成功后可使用 git ck 命令替代 git checkout

git config --global alias.ck checkout

git config --global alias.br branch

git config --global alias.st status

git config --global alias.cm commit

git config --global alias.pl pull

git config --global alias.ps push

2. git 命令行工具在正常不显示中文,可以通过git config --global core.quotepath off解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant