You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "David Nalley (JIRA)" <ji...@apache.org> on 2015/08/01 19:01:04 UTC

[jira] [Resolved] (INFRA-9947) Remove commits on karaf.git

     [ https://issues.apache.org/jira/browse/INFRA-9947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Nalley resolved INFRA-9947.
---------------------------------
    Resolution: Won't Fix

Unfortunately, we can't rewrite history on version control repositories. 



> Remove commits on karaf.git
> ---------------------------
>
>                 Key: INFRA-9947
>                 URL: https://issues.apache.org/jira/browse/INFRA-9947
>             Project: Infrastructure
>          Issue Type: Task
>          Components: Git
>            Reporter: Jean-Baptiste Onofré
>
> Hi,
> an user submitted a Pull Request with a bad e-mail address. He asked to change it. I fixed the commits with the correct e-mail address, but now, I have to cleanup the "old" commits with the bad e-mail address.
> Unfortunately, according to the ASF Git policy, I can push -f on master.
> On karaf.git, can you perform the following command:
> {code}
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "9e3e97d4d60b51f2e7cfc3f9b1c90931fe5766cb" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "34788625b2ae92441b973ffa94281e3261b1bb9f" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "edf72c7e7cb8deded966f2fa7f0a285eb5848f56" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "76554a196a2997d0db439bdb07d532e104d2152c" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git push -f
> {code}
> Thanks !
> Regards
> JB



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)