Skip to content

Instantly share code, notes, and snippets.

@shawndumas
Created November 24, 2014 19:01
Show Gist options
  • Save shawndumas/e48ad26569a80f39e151 to your computer and use it in GitHub Desktop.
Save shawndumas/e48ad26569a80f39e151 to your computer and use it in GitHub Desktop.
Create, init, root, README.md, initial, origin, push...
git init
git commit -m 'root commit' --allow-empty
touch README.md
echo "$(pwd | rev | cut -d"/" -f1 | rev)" >> README.md
git add .
git commit -m 'initial commit'
git remote add origin [email protected]:sdumas/$(pwd | rev | cut -d"/" -f1 | rev).git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment