Last active
May 26, 2016 16:03
-
-
Save whitershade/4abf3b256243674d98b5df8322c123a9 to your computer and use it in GitHub Desktop.
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
*** 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