Change git initial commit to kill history -
I have a repo where I want to delete all the commitments before the purpose of changing repo's initial commitment. .
I have created a branch with my final commitment, as I want to be in the form of a new root: Then I started a new commission for the initial commitment Created: Then I will call SHA Starting from the beginning I want to rebus the master at the beginning of the beginning, so I did: But the Rebase is not successful. After some commitments I get the struggle. Maybe I am not understanding, but the way I see it, I should not fight because I only I want to apply all the commands of the Master over that new "fake" initial commitment. Thank you in advance.
git checkout- b initial $ (echo "deleted history" | git commit-tree $ (git write-
git rebase - master of the initial starting new place
You need an orphan
GIT Checkout - Orphan Neuroot Master ~ 10 GIT Commit- M 'CalE Industry' git Cherry-pick Master ~ 10 Master GIT Branch-D Master
Comments
Post a Comment