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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:38:19+00:00 2026-05-27T15:38:19+00:00

After manually making branches and copies of my small project, I’m finally trying using

  • 0

After manually making branches and copies of my small project, I’m finally trying using git with no experience. How do you import all of these manual copies?

  • 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-05-27T15:38:20+00:00Added an answer on May 27, 2026 at 3:38 pm

    If you feel that it’s worthwhile to import all your old history into Git, it’s possible to do so. However, manually importing history can be pretty tedious, especially with multiple branches. Some people have written scripts to import code in an existing VCS into Git, but obviously that wouldn’t directly work for your manual copies.

    I would consider whether you really need all the historical copies in Git. If not, then start using the basic Git operations with your current code and move forward from now.

    If you still want to manually import history, here’s how you could do it in a simple manner:

    # create a new repository in the current directory
    git init
    
    # get snapshot #1 from files1
    cp ~/backup/files1/* .
    git add .
    git commit -m "files1 snapshot"
    
    # get shapshot #2 from files2
    cp ~/backup/files2/* .
    git add .
    git commit -m "files2 snapshot"
    
    # get snapshot in files_test into test_branch
    git checkout test_branch
    cp ~/backup/files_test/* .
    git add .
    git commit -m "files_test snapshot on branch test_branch"
    

    If you have removed files between revisions, you’ll also have to use git rm as well as git add to fully record history. Advanced use of the above can let you change the commit date and time from the current time to whatever timestamp you like.

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

Sidebar

Related Questions

I'm trying to write a simple SOAP client using SOAP::Lite . After making a
After making some changes to my SQL database structure (using scripts in SQL Server
In an Analysis Services project, after making some changes I go to reprocess the
This holds true in IE, FireFox, and Chrome on dev box- including after manually
With .net v3.5 or less it was required to manually dispose attachments after sending
After a small amount of research it seems that TCP MD5 Signatures are enabled
After doing an import of a content type (fairly large), the Apache SOLR admin
I am making a Music player for my web app. After user upload some
After making some changes to a method, I find it utterly annoying to have
i'm making a setup process to setup a db. I'm trying to let the

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.