Created
January 21, 2020 14:14
-
-
Save MaraScott/0a1d2c2067ef61c84cc914b1307b8b2f to your computer and use it in GitHub Desktop.
re-execute all commit line per line from beginning to push on a remote repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-list --reverse master | ruby -ne 'i ||= 0; i += 1; puts $_ if i % 1 == 0' | xargs -I{} git push other_remote +{}:refs/heads/other_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment