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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:53:44+00:00 2026-06-06T04:53:44+00:00

I understand that storage history is something that is better to keep for vcs

  • 0

I understand that storage history is something that is better to keep for vcs and I know that git allows to clone not the full history log but:

  • I afraid GitHub space is limited (main reason)
  • it’s auto-commits processing by script
  • I’m interesting only in last 10 or 5 commits in history
  • server space could be limited

Yet I can’t fully form the idea why do I want it but I shell try: I want to fork this (automated) repository and use git merge (yes, as a tool) to work on it and keep myself update with upstream. So in this case I will use git right. ideally I must make what “git merge” makes without having this automated upstream repository but it’s another task.

For now I found only that tricky way to clean all the history using git rebase

git checkout --orphan temp $1
git commit -m "Truncated history"
git rebase --onto temp $1 origin/master
git checkout master
git branch -D temp

But that is as complex as useless, it’s easier to create new repository and push files directly there. So need something to keep git repository history small.

  • 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-06T04:53:47+00:00Added an answer on June 6, 2026 at 4:53 am

    What you do is very wrong.

    A VCS helps you keep the history of your code, merge the work of the coder(s), manage branchs, retrieve old versions, find the origins of a bug, test a new strategy, and so on. It’s useful in backuping your code too but that’s far from its sole function.

    You just seem to be interested in git as a tool to save your recent work. That’s not at all what git is dedicated to.

    And your arguments aren’t valid. If you store only your code (and parameterization and small resources) in git, you won’t risk exploding github storage space nor any kind of server space. I have many projects on git, with many coders, and the occupied space is negligible. You shouldn’t try to erase history just to save space.

    If you’re coding, use git normally, respect its best practice, you won’t regret it as it is a very valuable tool.

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

Sidebar

Related Questions

I am not sure that I understand Isolated storage. I read the article http://msdn.microsoft.com/en-us/library/3ak841sy%28VS.80%29.aspx
I have a web app that populates user page history into the local storage.
I would like to connect LINQPAD to my development storage Azure. I understand that
I understand that Web Site Projects compile source on-the-fly, and Web Application Projects pre-compile
I understand that CoCreateInstance finds the COM server for the given class id, creates
I understand that in MVVM: the View knows about the ViewModel the ViewModel knows
I understand that we need to create MXML file to define a view. Suppose
I understand that when adding a column to a table containing data in SQL
I understand that Perl's OO model is rather primitive; it is, in most respects,
I understand that seconds and microseconds are probably represented separately in datetime.timedelta for efficiency

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.