Git command line auto-completion

Source: Internet
Author: User
Tags git commands

This article is transferred from: http://blog.yxwang.me/2010/01/git-completion/


Git command line auto-completion

Tips to see on Pro git, there is a git-completion.bash under the contrib/completion directory in git's source code package, save this file ~ /. Git-completion.bash, then add a line in. bashrc

1
source ~/.git-completion.bash

In this way, you can use the tab in Bash to automatically complete git commands, branch, and other content. In addition, Debian/Ubuntu has a package named Git-completion. After the package is installed, the script is automatically placed under/etc/bash_completion.d/, which is loaded and executed by bash-compleletion.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.