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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:11:32+00:00 2026-06-17T14:11:32+00:00

I searched around and found some tutorials explaining out to fix the problem, unfortunately

  • 0

I searched around and found some tutorials explaining out to fix the problem, unfortunately they haven’t worked.

Basically what’s happening is I have files in the .gitignore that the github for mac program I’m using is trying to commit, despite them being ignored. I found some blogs and even other posts on stackoverflow saying that you can fix it with the command line, and giving explanations how. Unfortunately I have absolutely no experience with the command line and my attempts to follow their directions have all failed to solve the problem.

Is there a way to fix this problem without using the command line? and if not can someone tell me how to use the command line hack found here among other places:

git rm -r --cached .
git add .
git commit -m "fixing .gitignore"
  • 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-17T14:11:34+00:00Added an answer on June 17, 2026 at 2:11 pm

    Are these files already tracked, and GitHub for Mac is trying to commit the modifications? .gitignore only prevents untracked files from being added/committed by git. Once a file has become tracked, .gitignore stops being consulted.

    The “hack” you linked is really just asking git to delete all of the files in the repo, then re-adding it all back. This works because the .gitignore will be consulted when re-adding files (because it’s consulted for any files not already in the index, and the git rm -r --cached . deleted the entire index).

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

Sidebar

Related Questions

I've searched around but haven't found any good examples or tutorials of saving audio
I have searched around and found some tutorials for xsl:key and key() function, but
I've searched around, but haven't found a duplicate of this question, unfortunately. File1: var
Searched around on SO for an answer. Found some interesting stuff but I am
I've searched around with this and haven't found any clear answers. I'm using Eclipse
I've searched all around for a solution and have found nothing. Here is some
I've searched around and haven't found an answer to this. What I would like
I'm trying to create an webapp and searched around to find tutorials... I found
I've searched around a bit, but haven't found a good answer yet on how
I've searched around a bit, but haven't found a satisfactory answer, so I'd like

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.