How to add old zipped sources at the beggining of origin trunk?

When I started with my simple project I didn’t use any repository to store changes. I just created a backups with simple ZIP files. I have many of them like this:


At some point I switched to GIT. The first commit I made from my last ZIP sources, and I have already some new commits done:

origin/master: (C1)<-(C2)<-(C3) ...

( C1 == )

Now I would like to add my backup zip’s in to the main trunk like this:

origin/master: (zip1)<-(zip2)<-(zip3) ... (zipN)<-(C1)<-(C2)<-(C3) ...

Is it possible in GIT?

  • Why maintain traditional detailed ChangeLog in modern world (with SVN, Mercurial, Git)?
  • Open sourcing a project: different commit histories on local and remote repo?
  • Git Commit works with XCode beta but not with normal version
  • Managing git across mutliple sites
  • Why does git Submodule show wrong branch
  • Git cvsimport - No CVS folders which causes cvsexportcommit to fail
  • Viewing changes in branch using Xcode Version Editor?
  • Xcode 8 source control does not show conflicts
  • One Solution collect form web for “How to add old zipped sources at the beggining of origin trunk?”

    There’s a manual way to do it.

    git checkout --orphan newroot
    git rm -rf .
    # unzip zip1 to project directory
    git add .
    git commit  -m 'zip1'
    # unzip zip2 to project directory
    git add .
    git commit  -m 'zip2'
    git rebase --onto newroot --root master
    git branch -d newroot

    You can replace manual unpacking/adding/commiting of zip folder with a bash for loop, obviously.

    See for explanation.

    Git Baby is a git and github fan, let's start git clone.