Remove the first git commit from the history -


this question has answer here:

how can remove first git commit history? want tree start second commit. know git rebase -i <sha1_of_commit> doesn't work first commit.

repository not shared anyone.

if still didn't published repo, can use git filter-branch. bear in mind technically create new repository, unconnected old 1 (hence "if didn't published yet" rule).

git filter-branch --commit-filter '     if [ "$git_commit" = "full id/sha of commit want skip here" ];                 skip_commit "$@";     else             git commit-tree "$@";     fi' head 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -