I need to start a new project based on one tiny part of an another project of mine whose repo is at github.
I did a git clone into a new project folder... fine.
I deleted everything I didnt need, got rid of the old migrations etc.... fine.
now it runs fine locally, BUT 'git log' shows ALL the old commits.
I want to tell git "forget ALL the prior commits, this is a new project, so forget everything before now, start from right NOW as the first commit"
I read about git rebase but it's not clear if that's the right command, and if so, how to use it for this very simple purpose.
Delete the .git
folder, run git init
and git add
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With