I am doing some code copy and merge, first I create a new branch git checkout -b new_branch
to store all merged code, after I created it, I deleted all the previous code to get a empty branch and then copied code to it.
And later I found that, if I just copy the code from other branch, all commits history would be lost. So I want to checkout to the branch while it is created, and based on that commit, to rename/refactor the code.
So how to find that commit ID?