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

  • Home
  • SEARCH
  • 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 8172703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:52:17+00:00 2026-06-06T21:52:17+00:00

I have a prototype version of an app in a repo. I’d like to

  • 0

I have a prototype version of an app in a repo.

I’d like to store the code from this prototype for future reference but not include any of the files in the next release version of the code which I’ll start form scratch on a new branch.

So far, I’ve created a new branch for the prototype and pushed that to our remote repository – that’s safe and not going anywhere.

Back on my local, master branch I’d like to start with a completely clean slate – remove all the files currently listed.

Is there a more gitish way to approach this than simply removing the files?

I remember there was a method I used previously when setting up github pages for a repository but the documentation for that seems to have moved :/

Thanks in advance

  • 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-06T21:52:19+00:00Added an answer on June 6, 2026 at 9:52 pm

    Here’s a blog post on creating a branch without ancestry. It describes two possible ways, you can try both and see which one works better for you.

    In summary now that the original link is dead:

    The simplest method of creating a new git branch without any ancestors:

    $ echo ref: refs/heads/newbranch > .git/HEAD
    $ git branch
      master
    [...]
    $ git commit -m 'creating newbranch'
    $ git branch
      master
    * newbranch
    

    Another option is:

    $ git symbolic-ref HEAD refs/heads/newbranch
    [...]
    

    Which doesn’t touch any files in .git

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

Sidebar

Related Questions

We have an application with legacy code that relies on prototype, but we've found
I have this opaque type type_t and a function prototype like foo(type_t *t) and
I have used a plugin that uses prototype js, it's working fine but the
I would like to create a custom version of the sortable widget. I have
After update xcode to 4.5 version I have an error Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with
I have php web service. and can consume it from php client. But problem
I have access to an external touchpad , a prototype version. It has a
I'm trying to use boost::exception and have condensed my prototype code down to the
I have a SVN repo on my server which contains a working version of
If I have the following code (simplified version of the problem): class TestA {

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.