Showing posts with label GitHub. Show all posts
Showing posts with label GitHub. Show all posts

Friday, October 28, 2016

Saturday, September 17, 2016

Git: Cloning Linux kernel source tree

Command:

$ git clone https://github.com/torvalds/linux.git


Result:

Cloning into 'linux'...
remote: Counting objects: 4916150, done.
remote: Compressing objects: 100% (393/393), done.
remote: Total 4916150 (delta 374), reused 186 (delta 186), pack-reused 4915571
Receiving objects: 100% (4916150/4916150), 1.58 GiB | 867.00 KiB/s, done.
Resolving deltas: 100% (4068017/4068017), done.
Checking out files: 100% (55502/55502), done.


Git: Getting a Git Repository: How to Make a Computer Operating System

Command:

$ git clone https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System.git


Result:

Cloning into 'How-to-Make-a-Computer-Operating-System'...
remote: Counting objects: 1387, done.
remote: Total 1387 (delta 0), reused 0 (delta 0), pack-reused 1387
Receiving objects: 100% (1387/1387), 1.86 MiB | 214.00 KiB/s, done.
Resolving deltas: 100% (428/428), done.

Wednesday, September 7, 2016

GitHub: Creating GitHub Pages

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.