Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts

Sunday, September 10, 2017

Git: Start Using It

Command:

# git init


Result:

Initialized empty Git repository in /var/www/.git/


Command:

# git add html
# git add php
# git commit -m "My first commit"


Result:

[master (root-commit) 2bdce87] My first commit
 Committer: root <root@v00000.myserver.com>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

If the identity used for this commit is wrong, you can fix it with:

    git commit --amend --author='Your Name <you@example.com>'

 30 files changed, 4545 insertions(+), 0 deletions(-)
 create mode 100644 html/a/2chnews/README.txt
 create mode 100644 html/a/2chnews/index.php
 create mode 100644 html/a/yahoonews/index.php
 create mode 100644 html/b/JSON_PATH
 create mode 100644 html/b/index.php
 create mode 100644 html/c/getcurrencies/index.php
 create mode 100644 html/c/getmarkets/index.php
 create mode 100644 html/c/getmarketsummaries/index.php
 create mode 100644 html/c/getticker/index.php
 create mode 100644 html/d/rate/index.php
 create mode 100644 html/e/calculator/getrate.php
 create mode 100644 html/e/calculator/getratealts.php
 create mode 100644 html/e/calculator/index.php
 create mode 100644 html/e/calculator/setamountcookie.php
 create mode 100644 html/f/index.php
 create mode 100644 html/img/crypto_logos.png
 create mode 100644 html/index.html
 create mode 100644 html/g/cookie/index.html
 create mode 100644 html/g/crypto/index.php
 create mode 100644 php/init.php
 create mode 100644 php/lib/a
 create mode 100644 php/lib/b
 create mode 100644 php/lib/c
 create mode 100644 php/lib/d
 create mode 100644 php/lib/e
 create mode 100644 php/lib/f
 create mode 100644 php/lib/g
 create mode 100644 php/lib/h
 create mode 100644 php/lib/u
 create mode 100644 php/lib/i
 create mode 100644 php/lib/j
 create mode 100644 php/template/k
 create mode 100644 php/template/l
 create mode 100644 php/template/m
 create mode 100644 php/template/n
 create mode 100644 php/template/o

Command:

# git push . master


Result:

Everything up-to-date


Command:

# git push .


Result:

Everything up-to-date


Command:

# git status


Result:

# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
# error/
# icons/
nothing added to commit but untracked files present (use "git add" to track)


Command:

# git config --global user.name "s**********"
# git config --global user.email s***********@gmail.com

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.