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