Skip to content

Instantly share code, notes, and snippets.

@anteaya
Created December 21, 2008 21:29
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 anteaya/38771 to your computer and use it in GitHub Desktop.
Save anteaya/38771 to your computer and use it in GitHub Desktop.
anita@anita-laptop:~/sandbox$ cd anteaya.github.com/
anita@anita-laptop:~/sandbox/anteaya.github.com$ ls -a
. .. .git images index.html README stylesheets
anita@anita-laptop:~/sandbox/anteaya.github.com$ mkdir nordic.git
anita@anita-laptop:~/sandbox/anteaya.github.com$ ls -a
. .. .git images index.html nordic.git README stylesheets
anita@anita-laptop:~/sandbox/anteaya.github.com$ cd nordic.git/
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ ls -a
. ..
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ git init
Initialized empty Git repository in .git/
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ git symbolic-ref HEAD refs/heads/gh-pages
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ rm .git/index
rm: cannot remove `.git/index': No such file or directory
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ git clean -fdx
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ echo "My GitHub Page" > index.html
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ git add .
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ git commit -a -m "First pages commit"
Created initial commit f80208f: First pages commit
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 index.html
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ git push origin gh-pages
fatal: 'origin': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment