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 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

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 185904
Alex Hales
  • 0
Alex HalesTeacher
Asked: June 10, 20222022-06-10T10:17:45+00:00 2022-06-10T10:17:45+00:00

git – gitignore not working in spite of removing the files from the cache

  • 0

[ad_1]

I have the following files listed in my .gitignorefile, for simplicity sake we’ll focus on just one:

latin/files/lasla_db.pkl

That file was never added to my github repository but maybe someone how it got added into the cache or something like that so I ran:

Admins-MacBook-Pro-4:latin bobsmith$ git rm --cached latin/files/lasla_db2.pkl
rm latin/files/lasla_db2.pkl

I then ran the following commands:

Admins-MacBook-Pro-4:latin bobsmith$ git add .
Admins-MacBook-Pro-4:latin bobsmith$ git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
    deleted:    latin/files/lasla_db.pkl

I then ran the following:

Admins-MacBook-Pro-4:latin bobsmith$ git commit -m 'a'
[master 81b1e23] a
 12 files changed, 9 deletions(-)
 delete mode 100644 latin/files/lasla_db.pkl

I then ran

git push -u origin master

I got two error messages related to large files which I’m not worried about because once I ignore the offending files I assume the problem will go away:

remote: error: Trace: a46785362c02dd013da2eba7570e06c706a9f31357257ef6957b9f39b86c2efe
remote: error: See http://git.io/iEPt8g for more information.

But one I do understand but don’t understand why I’m getting it since I’m ignoring that file:

remote: error: File latin/files/lasla_db.pkl is 217.16 MB; this exceeds GitHub's file size limit of 100.00 MB

[ad_2]

  • 0 0 Answers
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 399 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 371 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 367 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

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.