Hello, first of all, let me remind you that you are trying to trash all your previous history, which, in my opinion, is generally a bad idea.
If you really want to go this way, I would do a git rebase -i --root and instead of 'pick', use 'fixup' for each commit except the first one. Also, you may want to use 'reword' on the first commit, so your single final commit will have a sane message. (Note that for this you need a recent Git version). There may be other ways, these are my two cents. Best, Gergely On 25 Nov 2014 16:35, "Ryan" <[email protected]> wrote: > I can't quite find a solution to this. > > We have a repo with a master branch that has probably hundreds of commits. > At this point, the product is going to be open sourced and pushed to > github. I would like to have the initial push to github show one commit, > not the hundreds of previous commits to get to this point. > > How would you best go about that? Once I do that, future development will > be done on branches, then squashed and pushed to github as features are > complete. Its this first push I can't seem to figure out how to do. Squash? > Replace? Rebase? Lots of examples out there, but none that quite fit my > need. > > Thanks, > Ryan > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
