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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:50:56+00:00 2026-05-28T07:50:56+00:00

I have three zipped folders named [1,2,3] each contains the same project 1 being

  • 0

I have three zipped folders named [1,2,3] each contains the same project 1 being the earliest and 3 being the most current. I am looking for a way to merge all of these into 3 git commits and the 3 most commit be the folders contents.

I suppose I can do the following:

  1. Unzip 1.
  2. Take the contents from 1 place it into a new folder.
  3. git init
  4. git add -A
  5. git commit -m "first commit
  6. Unzip 2
  7. replace the contents from the new folder with contents from 2
  8. git add -A
  9. git commit -m "second commit
  10. Unzip 2
  11. replace the contents from the new folder with contents from 3
  12. git add -A
  13. git commit -m "third commit

Could anyone tell me if this is the best way to do this?

  • 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-28T07:50:57+00:00Added an answer on May 28, 2026 at 7:50 am

    Each time you run git init, you’re creating an empty repository.

    If there are only three folders and you’re only doing it once, then this will work (if you omit git init). Just make sure not to erase the .git folder.

    You could even unzip the three folders and move the .git folder to each in succession and commit in each separate folder, with the final folder being the start of your new repository.

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

Sidebar

Related Questions

i have three lists with the same number of elements in each other, i
I created a NetBeans project. I took the project folders zipped to another machine
Referring to this post I have zipped and unzipped folders successfully - TrueZip -
I have been working on a project that requires downloading a zipped file off
I have to submit my homework assignments in a form of zipped eclipse project
Have three classes User, Group and Field. Many to many relationship on User /
Have three divs in a container that I want to float over a large
I have three separate table variables in my Function, 1 of them is not
I have three files: lib.c lib.h => They should be built as a .so
i have three java based web application app1,app2 and app3 at production. All 3

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.