@
@
@mgyk2016-02-12 20:32:43
git
@mgyk, 2016-02-12 20:32:43

How to create a new repository from a specific commit?

Please tell me how to create a new repository starting from a specific commit and migrate all branches.
Now state is
master - old
development code - first commit just deleted all files (ref XXX)
All other branches are from development
I want to make a new repository whose history starts from commit after ref XXX and drag all branches there (without current master)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2016-02-12
@aol-nnov

what is the real task? master to delete on the server?
git push origin :master
old commits can be merged into one with a rebase if you're ashamed of the history ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question