Services Spotlight:

Install Git Bash Completion on Fedora

Written By Corlew Solutions
Updated April 7, 2016
Published April 7, 2016
Why Corlew Solutions?

We write great software and provide amazing technical support. Contact us today if you need help with a software project:

  • Website: Send an inquiry
  • Email:
  • Phone: (703) 688-3058

Article Technology Info

This article discusses the following technologies:

  • Fedora - Fedora is an operating system based on the Linux kernel, developed by the Fedora Project and sponsored by Red Hat.
    (website | download | wiki)
  • Git - A free and open source distributed version control system
    (website | download | docs)

Bash Completion Fedora

After using Git for a while, you’ll eventually start looking ways to make your Git workflow more efficient. One thing that gets old pretty quick is having to type out full file, directory and branch names. Wouldn’t it be nice to have the same auto completion capability in Git that we have on our bash terminal? Of course it would! Let’s make it happen.

Install Git Bash Completion

Git auto completion is so useful that it’s available through the package manager on Fedora. To install, open a terminal and execute:

1
sudo yum install git bash-completion

Usage

With Git bash completion installed, navigate to the folder of one of your projects that is using Git. Type the first few letters of branch name in then press the tab key. If Git bash completion can find your target, it will finish the spelling for you. For example, if you want to checkout the master branch you could type

1
git checkout mas # then press tab

We hope you found this article useful. If you see any mistakes, missing features or ways to improve it, please let us know in the comments below so we can update its contents. If you're willing to link to us, we would sincerely appreciate it!

References

Corlew Solutions is a Web Design and Web Application Development company based in Fairfax Virginia, minutes away Washington D.C. If you're looking for great web design from the Northern Virginia area or web design from the Washington D.C. area we can help. Contact Us today!

comments powered by Disqus