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 7787591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:43:13+00:00 2026-06-01T20:43:13+00:00

At work we use git as source control. In one folder, there is a

  • 0

At work we use git as source control. In one folder, there is a script I use very often, but there are several other scripts in the folder that are very similarly named that I never use. These other scripts make it difficult for me to tab-complete the name of my script when I want to run it, making it a minor annoyance every time I run this script.

I was hoping that I could put the names of the other scripts in my global .gitignore file, then delete them, but git still recognized that I had removed them, and wants me to commit this change.

In order to solve the problem, I have just created a bash alias for my script name, but it still leaves me curious whether the problem could have been solved another way. Is it possible for me to remove a file from my local git repository without having git complain?

Answering “No” is acceptable. I just am not sure whether I failed because it isn’t possible, or because my git fu is not strong enough.

  • 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-06-01T20:43:16+00:00Added an answer on June 1, 2026 at 8:43 pm

    Try git-update-index --assume-unchanged path/to/ignored/file. That will keep git from checking that file for changes in your local working tree, but not affect any remote repositories.

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

Sidebar

Related Questions

My enterprise use svn as a source control. I would like to use git
I wanted to use one of the Git-completion.bash features but I can't customize the
I am almost convineced to use Git with visual studio for source control. I
I use git for my local work (and love it ever so much), and
At work we use a common makefile that other makefiles include (via the include
We currently use activecollab with subversion, but we want to consider using Git or
I use git for my source management, I have a local repository on my
I am new to git and distributed version control but have managed, without much
At work I use ClearCase and SourceSafe, but have found some time to do
I'm trying to use git and I have many computers. I usually work on

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.