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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:34:06+00:00 2026-06-07T20:34:06+00:00

How can I completely start over in-place? How can I totally wipe out everything

  • 0

How can I completely “start over” in-place?

How can I totally wipe out everything in a Git remote repository? I am the only client currently and before I can let it go public I have to wipe out all of the previous commits.

Not a duplicate because…

This question is about how to remove history, including the original base commit, without deleting the existing repository. My repository is on SourceForge, and the only way to do that is to destroy the whole project, which requires you to submit a Project Removal Request, which they don’t always grant (especially in my case, where my project is younger than 90 days, so they won’t grant it).

  • 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-07T20:34:08+00:00Added an answer on June 7, 2026 at 8:34 pm

    If the remote name is origin and you have force-push rights on the remote repository, this will delete every branch and every tag in the remote repository:

    REMOTE=origin
    
    for i in .git/refs/$REMOTE/origin/*
    do
        git push $REMOTE :"`basename "$i"`"
    done
    
    for i in `git tag`
    do
        git push $REMOTE :refs/tags/$i
    done
    

    This is a destructive operation, so make sure that you really want to do this first.

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

Sidebar

Related Questions

How can I detect the start of my application from a completely terminated stated
I can't seem to figure out why SQL Server is taking a completely different
I have completely fubar'd my local branch, and would like to start over. The
Newbie with git here. I have a Remote Repository, cloned on my PC. It's
Which Doxygen option can completely disable sorting members by type (Private / Public /
how can I completely remove button effects from a Button component in Flex ?
How can I hide completely this section with red marked. Any QWidget implementation will
Does anyone know how I can create a Completely transparent image or given am
How can I create a completely new column with the same value for each
I'm completely new to coding - I can do some basic HTML. I'm trying

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.