Skip to content

Instantly share code, notes, and snippets.

@whitershade
Last active May 26, 2016 16:03
Show Gist options
  • Save whitershade/4abf3b256243674d98b5df8322c123a9 to your computer and use it in GitHub Desktop.
Save whitershade/4abf3b256243674d98b5df8322c123a9 to your computer and use it in GitHub Desktop.
*** create a new repository on the command line ***
echo "# my-brackets-template" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/whitershade/my-brackets-template.git
git push -u origin master
*** push an existing repository from the command line ***
git remote add origin https://github.com/whitershade/my-brackets-template.git
git push -u origin master
*** how to upload files to gh-pages ***
git clone github.com/user/repository.git
cd repository
git checkout --orphan gh-pages
git rm -rf .
rm '.gitignore'
echo "My Page" > index.html
git add index.html
git commit -a -m "First pages commit"
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment