Created
January 9, 2022 08:41
-
-
Save honux77/96f7fbcf1716e4e8057884e714b3e36d to your computer and use it in GitHub Desktop.
Branch Generation from text file
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
#!/bin/bash | |
filename='user.txt' | |
repo='origin' | |
base='main' | |
i=0 | |
while read user; do | |
echo "$i: $user" | |
((i = i + 1)) | |
git branch $user $base | |
git push $repo $user | |
done < $filename | |
echo "Done!" |
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
honux | |
crong | |
jk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment