Created
August 30, 2017 19:47
-
-
Save 0xferit/7d7c2c5807670032836be601342e2473 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
for rev in $(git rev-list --reverse origin/master..HEAD); | |
do | |
git push -f origin ${rev}:master | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shopt -s globstar
for fileToCommit in ./**/*; do
test -f "$fileToCommit" || continue
printf "%s\n" "${fileToCommit}"
git add "${fileToCommit}"
git commit -m "initial commit ${fileToCommit}"
done