Last active
December 18, 2015 12:59
-
-
Save tedshd/5786936 to your computer and use it in GitHub Desktop.
build gh-pages flow
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
tedshd@Tedshd-mba [12:28:50] [~/Develop/keyboard_test_page] [master] | |
-> % git checkout --orphan gh-pages | |
Switched to a new branch 'gh-pages' | |
tedshd@Tedshd-mba [12:29:22] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % git st | |
# On branch gh-pages | |
# | |
# Initial commit | |
# | |
# Changes to be committed: | |
# (use "git rm --cached <file>..." to unstage) | |
# | |
# new file: .gitattributes | |
# new file: .gitignore | |
# new file: README.md | |
# new file: keyboard_test_page.html | |
# | |
tedshd@Tedshd-mba [12:29:25] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % ll | |
total 24 | |
-rw-r--r-- 1 tedshd staff 293 6 15 12:27 README.md | |
-rw-r--r-- 1 tedshd staff 6068 6 15 12:27 keyboard_test_page.html | |
tedshd@Tedshd-mba [12:30:36] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % mv keyboard_test_page.html index.html | |
tedshd@Tedshd-mba [12:30:53] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % ls | |
README.md index.html | |
tedshd@Tedshd-mba [12:30:54] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % git st | |
# On branch gh-pages | |
# | |
# Initial commit | |
# | |
# Changes to be committed: | |
# (use "git rm --cached <file>..." to unstage) | |
# | |
# new file: .gitattributes | |
# new file: .gitignore | |
# new file: README.md | |
# new file: keyboard_test_page.html | |
# | |
# Changes not staged for commit: | |
# (use "git add/rm <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# deleted: keyboard_test_page.html | |
# | |
# Untracked files: | |
# (use "git add <file>..." to include in what will be committed) | |
# | |
# index.html | |
tedshd@Tedshd-mba [12:31:01] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % git rm keyboard_test_page.html | |
rm 'keyboard_test_page.html' | |
tedshd@Tedshd-mba [12:32:04] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % git add index.html | |
tedshd@Tedshd-mba [12:32:20] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % git st | |
# On branch gh-pages | |
# | |
# Initial commit | |
# | |
# Changes to be committed: | |
# (use "git rm --cached <file>..." to unstage) | |
# | |
# new file: .gitattributes | |
# new file: .gitignore | |
# new file: README.md | |
# new file: index.html | |
# | |
tedshd@Tedshd-mba [12:33:33] [~/Develop/keyboard_test_page] [gh-pages *] | |
-> % git commit | |
tedshd@Tedshd-mba [12:34:00] [~/Develop/keyboard_test_page] [gh-pages] | |
-> % git push | |
fatal: The current branch gh-pages has no upstream branch. | |
To push the current branch and set the remote as upstream, use | |
git push --set-upstream origin gh-pages | |
tedshd@Tedshd-mba [12:34:04] [~/Develop/keyboard_test_page] [gh-pages] | |
-> % git push --set-upstream origin gh-pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment