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

The Archive Base Latest Questions

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

When I previously committed and pushed to my github repo, I had compiled *.o

  • 0

When I previously committed and pushed to my github repo, I had compiled *.o files and some other text files and such that are included on the repo. I recently finished the project and I want to clean up the github repo by not having those *.o files and such. I cleaned up the source folder on my local repo, is there a chain of commands such that I can commit/push the files I want and only have those show up on the most recent master branch of the repo?

Thanks.

  • 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-14T22:25:43+00:00Added an answer on June 14, 2026 at 10:25 pm

    Note that even if you delete these (probably big) *.o files, they will still be present in git history, and still occupy space in git object store. If you want to purge these files for good (even in history), you should use git filter-branch.

    After you are done with this, be sure to edit .gitignore to avoid adding junk in the future.

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

Sidebar

Related Questions

I had made some changes to a file under a git repo, I committed
I recently opened a repo on GitHub. I'm new to Git. As usual with
A switch went wrong and I committed some files to a a different branch
Previously, I had my LegNo enums defined simply as: NO_LEG, LEG_ONE, LEG_TWO and by
Previously, I have an app that uses core data. I use same store url
Previously, I used to use MFC collection classes such CArray and CMap . After
I've read somewhere that when a session is flushed or a transaction is committed,
Okay so I made some changes in my project that resulted in a huge
Despite reading lots of other posts regarding GIT and moved files I still struggle
When removing files from a Git repository I accidentally also removed a file that

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.