It is possible, but you will need to change the repository history (local and on openshift). Changing the history, you will need to do a "git push -f" to force the history change on a remote repository like on openshift.
If you really want to merge the commits into one commit, you need to get the commit hash before the ones you want to merge. You can get the hash with git log. After that, use the command git rebase -i hash-you-have-coppied It will open a text editor that shows all commit that came after the commit you passed to the command. The oldest commit will come in the first line and the last commit, in the last line. Change the word pick to squash in the commits that you want to merge into the previous one. When you close the file, the commits will be merged into the first commit. William Seiti Mizuta @williammizuta Caelum | Ensino e Inovação www.caelum.com.br On Tue, Aug 13, 2013 at 12:58 AM, jbsi <jeffersonbeze...@gmail.com> wrote: > Hi everybody, > > I have one repository on *codebasehq* and I was learning how to deploy my > application on openshift, then I did a lot of modifications to deploy the > app on openshift. After each modification I commited e pushed to openshift > ("git push openshiftGitURL") without clone my codebasehq repository. > > After dozens of commits/pushes to openshift the application was deployed > correctly, and I pretend to push these modifications to codebasehq with a > single commit. It is possible, isn't it? How can I do this? > > Thanks > > -- > 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 git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.