Skip to content

Instantly share code, notes, and snippets.

@agray
Created September 17, 2015 12:42
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 agray/26da2ef295dd572970ae to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash
mkdir $1
cd $1
git init
git remote add origin https://$2@bitbucket.org/$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