Any reason to use a Git alias instead of a git-* script?

荒凉一梦 提交于 2019-11-29 07:33:35

Aliases are defined via git's config mechanism, so they can apply to either the whole system, a single user, or just a single repository, depending on whether you define them in /etc/gitconfig, ~/.gitconfig or $GIT_DIR/config. If you copy your own .gitconfig to a new machine, it will include all your personal aliases by copying a single file, which seems less overhead than copying a full directory and setting up PATH correctly to find your files.

With using git aliases you will be able to use autocompletion of branch names, tags, etc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!