Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7684867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:07:31+00:00 2026-05-31T19:07:31+00:00

Git’s tab autocompletion is useful for small projects, but I’m currently working on two

  • 0

Git’s tab autocompletion is useful for small projects, but I’m currently working on two big projects that use git and for these it’s worse than useless. Whenever I type, say, git add forms<tab>, git takes 20 seconds or more to find the file (in this example, forms.py), and in this timespan I can’t do anything else in the terminal. Is there any way to turn off the autocompletion feature, or somehow make it faster?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:07:32+00:00Added an answer on May 31, 2026 at 7:07 pm

    It’s not git auto completing the file names, it’s your shell. Do you have the same delay when doing e.g. “cat forms< tab >”?

    Check out this post with similar problems:

    http://talkings.org/post/5236392664/zsh-and-slow-git-completion

    This post suggests adding the following to your .zshrc:

    __git_files () { 
        _wanted files expl 'local files' _files     
    }
    

    EDIT: Here’s the original text of that post

    I found many posts relating complaints about how painfully slow git
    auto-completion can be in large repositories. There were various
    suggested patches and suggestions to load the latest zsh. Maybe one
    of those things would work, but all I really want is for it to
    complete the names of branches and files as they are in the file
    system. I did not find any suggestions on how to get this behavior so
    I figured it out for myself. I thought I would share this for anyone
    who might benefit from it. I just added the following to my .zshrc
    file:

    __git_files () { 
        _wanted files expl 'local files' _files  }
    

    Now I can run git commands and get near instant completion while still
    getting file completion similar to what ls would provide.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

git is a very powerful tool, but not that easy to use For example,
git status # On branch master # Changed but not updated: # (use git
git version 1.7.4.1 Ubuntu Currently I am working on a project at my company.
Git newbie here. Is there a way to synchronize two repositories, so that the
Git has a much-touted(?) octopus-merge capability that can merge many heads into one. But
Git is saying that I need to pull before pushing to fast-forward but when
Git says to use git add to add untracked files to my repo. I
Git works fine on my dev box, but ever so often, I'll go to
git status tells me that my branch and the one I started from on
Git is implemented as a directed acyclic graph. Children know their parents but not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.