Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created August 6, 2020 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanVaughan/21f72bdfc6cdfb71bbb741e82d94dc43 to your computer and use it in GitHub Desktop.
Save IanVaughan/21f72bdfc6cdfb71bbb741e82d94dc43 to your computer and use it in GitHub Desktop.
Push each commit on the branch on its own so CI builds each one by one
branch=$(git branch --show-current)
for sha1 in $(git rev-list --reverse ...master) ; do
git push origin $sha1:$branch --force
done
@IanVaughan
Copy link
Author

chmod +x git-push-all 
mv git-push-all  <to in your path>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment