Create USERNAME.github.io repository before proceeding.
Command:
$ git clone https://github.com/USERNAME/USERNAME.github.io
Result:
Cloning into 'USERNAME.github.io'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
Command:
$ ls
Result:
USERNAME.github.io
Command:
$ cd USERNAME.github.io/
$ echo "Hello World" > index.html
$ git add --all
$ git commit -m "Initial commit"
Result:
[master (root-commit) 5ef669b] Initial commit
1 file changed, 1 insertion(+)
create mode 100644 index.html
Command:
$ git push -u origin master
Result:
Username for 'https://github.com': USERNAME
Password for 'https://USERNAME@github.com':
Counting objects: 3, done.
Writing objects: 100% (3/3), 231 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/USERNAME/USERNAME.github.io
* [new branch] master -> master
Branch master set up to track remote branch master from origin.