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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:29:21+00:00 2026-06-10T22:29:21+00:00

For example, I want to use some framework that’s located on Github. Is there

  • 0

For example, I want to use some framework that’s located on Github. Is there a way to clone a repository without the .git structure? That way I can add new a remote url and push to my own repository appropriately?

Edit

The purpose of this is so that I can take a framework off from Github and put it into my own brand new repository without importing any git data from the framework’s repository (like git logs). I know you can clone and remove the appropriate data or you could just download a tarball using Github’s tool, but I’m just wondering if there’s any easier way to do it such as like a git clone, preferably a single command.

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

    If you want just the repo latest content, without any git information, then the tarball is the best solution, and can be done with a single command line:

    curl -L https://github.com/username/reponame/tarball/master | tar zx
    

    or

    wget --no-check-certificate https://github.com/username/reponame/tarball/master -O - | tar xz
    

    Even on Windows, you can do it, with the unix-like commands from GoW (Gnu On Windows).

    That would allow you then to add that new directory as one of your own.

    Note: a submodule would be preferable, but isn’t what you specifically asked.


    The OP Steven Lu adds in the comments:

    I guess this works for Github, but what would you do if the repo wasn’t hosted by Github?

    For any other repo, you can use the command git archive --remote, as illustrated in “git archive command with bitbucket“:

    For instance:

    git archive --remote=ssh://git@bitbucket.org/username/reponame.git --format=tar --output="file.tar" master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my web application, I create some framework that use to bind model data
I want to use ExecuteStoreQuery function of Entity Framework and I was wondered that
For example I want to use custom logger: logger = require('basic-logger'), logger.setLevel('info') var customConfig
I want to use custom exception handling, for example instead of using (Exception ex)
I want to use PHP to replace javascript functions in HTML documents. For example:
I want to use the Html Helper class to build, for example, an Html.ActionLink
I want to use gcd function of the Integer class. Using the example from
I want to use two meta:resourcekey in single control is it possible? for example
I want to use gestures on a windows mobile phone. For example (using .net
I want to use rb_require with rb_protect, as in the following example: int error;

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.