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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:18:47+00:00 2026-05-28T11:18:47+00:00

I screwed up. I modified my .gitignore to inadvertantly start tracking a directory of

  • 0

I screwed up. I modified my .gitignore to inadvertantly start tracking a directory of misc files that are huge. When I pushed to origin I realized it was taking forever and saw my error. I have removed (I think) the files from being tracked, but now whenever I go to push again it somehow picks up right where it left off before — in the middle of uploading all those huge files. I keep control-c to stop the push. I want to stop git from resuming previous push and just push afresh this lastest commit.

  • 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-28T11:18:47+00:00Added an answer on May 28, 2026 at 11:18 am

    Even if you removed the file in the next commit, the old commit is still there and that will still be pushed.

    You have to do a git reset --hard <sha hash of commit before adding the misc files>.

    Once you do above, the commit where you added the files will be gone. You can now start working and push.

    If you have other commits ( that you need) between adding those files and now, you can do a git rebase -i <hash before file adding> and remove the commit where you added the files

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

Sidebar

Related Questions

I screwed up and created a column as a varchar(255) where that is no
Somehow I screwed with my IIS7 settings, and VS2010 doesn't want to start websites
I have a git repository that I am using and I've screwed up. I
My situation is that I screwed up essentially. I inherited my code base about
For some reason a website that recently went live has now completely screwed in
I have other PDO Statements that execute fine, but this one is screwed up.
I have to admit that I just, well, screwed the pooch on a production
I have a site that gets completely screwed up in IE, and I was
I think that I have somehow screwed up my install project because my application
Not sure what I screwed up... can't create a library_hour that belongs_to a library_location.

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.