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

  • Home
  • SEARCH
  • 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 8848441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:25:27+00:00 2026-06-14T12:25:27+00:00

git version 1.7.11.7 Fedora 17 Hello, I create a new git working resposity git

  • 0
git version 1.7.11.7
Fedora 17

Hello,

I create a new git working resposity

git init

I added some files and some directories.

However, I have some files that I want to ignore based on my environment. I don’t want to create a .gitignore file as I don’t want it added to repository. Just my local.

So I want to ignore my server/build directory so I added it to my .git/info/exclude file.

# exclude patterns (uncomment them if you want to use them):
 *.[oa]
 *~
 server/build

server is the root directory where I init my git resposity.

However, when I do git status I always get this directory in my untacked files.

# On branch dev
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
server/build/

I want to remove this from my git status.

I have tried the following with didn’t work for me

git rm -r --cached server/build
  • 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-14T12:25:28+00:00Added an answer on June 14, 2026 at 12:25 pm

    You’re leaving a blankspace before the pattern. Delete it and it should work:

    # exclude patterns (uncomment them if you want to use them):
    *.[oa]
    *~
    server/build
    

    If your repo doesn’t have a .gitignore you could create one and ignore itself, too – but it really is more correct to use exclude, anyway.

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

Sidebar

Related Questions

git version 1.7.4.1 I am using git on Ubuntu. I have copied some files
I have Git (version 1.7.2.5) bash compeletion working on my Debian squeeze (6.0). Git
We have been trying to get git-subtree working on a project (with git version
git version 1.7.4.4 I am working on a new project from my development team.
I am using git version 1.7.10.msysgit.1. I have a working directory in which I
I am currently working on some refactoring of a large application under Git version
I'm using git to version my home directories on a couple different machines. I'd
I'm using Git for version control and unlike SVN I have not come across
I have been using Git for my version control for a while now, but
I am using Git Version Control on an remote server and I have set

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.