Created
September 19, 2013 20:56
-
-
Save PaulCapestany/6629716 to your computer and use it in GitHub Desktop.
Simple script to create a buncha git repos in a folder containing folders (each child folder becomes a git repo) and then creates and switches to a new branch. Useful when playing around with code tutorials for example.
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
for i in $(ls) ; do ; cd $i ; git init && git add . && git commit -a -m "Initial commit" && git branch myFork && git checkout myFork ; .. ; done ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment