L
L
lilandre22017-01-13 23:25:47
git
lilandre2, 2017-01-13 23:25:47

Now I'm learning about Git. How did he know my mail if I didn't enter it anywhere in git'e?

tyts
[email protected] MINGW32 ~
$ cd

[email protected] MINGW32 ~
$ cd D:/

[email protected] MINGW32 /d
$ cd GIT/examp
bash: cd: GIT/examp: No such file or directory

[email protected] MINGW32 /d
$ cd GIT_s/exampl

[email protected] MINGW32 /d/GIT_s/exampl
$ git help
usage: git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

These are common Git commands used in various situations:

start a working area (see also: git help tutorial)
   clone      Clone a repository into a new directory
   init       Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday)
   add        Add file contents to the index
   mv         Move or rename a file, a directory, or a symlink
   reset      Reset current HEAD to the specified state
   rm         Remove files from the working tree and from the index

examine the history and state (see also: git help revisions)
   bisect     Use binary search to find the commit that introduced a bug
   grep       Print lines matching a pattern
   log        Show commit logs
   show       Show various types of objects
   status     Show the working tree status

grow, mark and tweak your common history
   branch     List, create, or delete branches
   checkout   Switch branches or restore working tree files
   commit     Record changes to the repository
   diff       Show changes between commits, commit and working tree, etc
   merge      Join two or more development histories together
   rebase     Reapply commits on top of another base tip
   tag        Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows)
   fetch      Download objects and refs from another repository
   pull       Fetch from and integrate with another repository or a local branch
   push       Update remote refs along with associated objects

'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.

[email protected] MINGW32 /d/GIT_s/exampl
$ git init
Initialized empty Git repository in D:/Git_s/exampl/.git/

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        css/
        index.html

nothing added to commit but untracked files present (use "git add" to track)

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gitignore
        css/
        index.html

nothing added to commit but untracked files present (use "git add" to track)

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ get add
bash: get: command not found

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ get add.
bash: get: command not found

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git add.
git: 'add.' is not a git command. See 'git --help'.

Did you mean this?
        add

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ add
bash: add: command not found

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git add .

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   css/main.css
        new file:   index.html


[email protected] MINGW32 /d/GIT_s/exampl (master)
$  git rm
usage: git rm [<options>] [--] <file>...

    -n, --dry-run         dry run
    -q, --quiet           do not list removed files
    --cached              only remove from the index
    -f, --force           override the up-to-date check
    -r                    allow recursive removal
    --ignore-unmatch      exit with a zero status even if nothing matched


[email protected] MINGW32 /d/GIT_s/exampl (master)
$  git rm--cached index.html
git: 'rm--cached' is not a git command. See 'git --help'.

[email protected] MINGW32 /d/GIT_s/exampl (master)
$  git rm --cached index.html
rm 'index.html'

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   css/main.css

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        index.html


[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git add index.html

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   css/main.css
        new file:   index.html


[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git rm --
usage: git rm [<options>] [--] <file>...

    -n, --dry-run         dry run
    -q, --quiet           do not list removed files
    --cached              only remove from the index
    -f, --force           override the up-to-date check
    -r                    allow recursive removal
    --ignore-unmatch      exit with a zero status even if nothing matched


[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   css/main.css
        new file:   index.html


[email protected] MINGW32 /d/GIT_s/exampl (master)
$   git commit -m 'h1 was added'
[master (root-commit) 29c5691] h1 was added
 3 files changed, 16 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 css/main.css
 create mode 100644 index.html

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master
nothing to commit, working tree clean

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git log
commit 29c5691bb6e6cd269e45ae38ede4fc226493cd9d
Author: Andrey <[email protected]>
Date:   Fri Jan 13 23:14:06 2017 +0400

    h1 was added

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git add
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git add .

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git status
On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   index.html


[email protected] MINGW32 /d/GIT_s/exampl (master)
$ dit commit -m 'h2 was added. You told about Love to julia'
bash: dit: command not found

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git commit -m 'h2 was added. You told about Love to julia'
[master 19ee536] h2 was added. You told about Love to julia
 1 file changed, 1 insertion(+)

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ git log
commit 19ee536dc7f411a7936ccac8dababa66afa34106
Author: Andrey <[email protected]>
Date:   Fri Jan 13 23:20:55 2017 +0400

    h2 was added. You told about Love to julia

commit 29c5691bb6e6cd269e45ae38ede4fc226493cd9d
Author: Andrey <[email protected]>
Date:   Fri Jan 13 23:14:06 2017 +0400

    h1 was added

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ ^C

[email protected] MINGW32 /d/GIT_s/exampl (master)
$ ^C

[email protected] MINGW32 /d/GIT_s/exampl (master)
$

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-01-13
@lilandre2

introduced somewhere, otherwise it would not exist.
git config user.email

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question