Created
September 17, 2015 12:42
-
-
Save agray/26da2ef295dd572970ae to your computer and use it in GitHub Desktop.
Setup a newly created BitBucket repository locally with content and a master branch ready to go
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
#!/usr/bin/env bash | |
mkdir $1 | |
cd $1 | |
git init | |
git remote add origin https://[email protected]/$2/$1.git | |
echo "Andrew Gray" >> contributors.txt | |
git add contributors.txt | |
git commit -m 'Initial commit with contributors' | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment