A
A
Alex2015-09-15 21:21:32
git
Alex, 2015-09-15 21:21:32

How to make a Git commit retroactive?

Once upon a time, each version of the program was packed into a separate archive. Then I grew up and switched to GIT.
Now I want to add all previous versions to GIT as well, as if it was originally used for them.
In fact, you need to make several commits retroactively.
But how ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2015-09-15
@Kozack

git rebase.
By the way, do versioning through git tag.

M
Maxim Moseychuk, 2015-09-15
@fshp

rebase

W
wwarlock, 2015-09-24
@wwarlock

In general, no way.
But if the repository is local, or a commit is on a branch that is also local, or you don't mind killing the global repository, then you can use
$ git rebase -i commit-in-the-past

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question