NBash

Форк
0
/
get_const.man 
122 строки · 5.6 Кб
1
## rev-parse --absolute-git-dir
2

3
    /home/st/REPOBARE/_repo/Book/.git
4

5
## git rev-parse --show-toplevel
6

7
    /home/st/REPOBARE/_repo/Book
8

9
## git config --list 
10

11
    tail: 
12

13
    user.email=legioner9@inbox.ru
14
    user.name=[alt]legioner9
15
    core.editor=gvim -v
16
    safe.directory=${COMMUNIS_PATH}
17
    safe.directory=${COMMUNIS_PATH}
18
    core.repositoryformatversion=0
19
    core.filemode=true
20
    core.bare=false
21
    core.logallrefupdates=true
22
    remote.origin.url=git@github.com:legioner9/NBash.git
23
    remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
24
    branch.master.remote=origin
25
    branch.master.merge=refs/heads/master
26
    remote.GITHUB_LEGIONER9_NBash.url=git@github.com:legioner9/NBash.git
27
    remote.GITHUB_LEGIONER9_NBash.fetch=+refs/heads/*:refs/remotes/GITHUB_LEGIONER9_NBash/*
28
    remote.HOME_REPOBARE_BARE_NBash.url=/home/st/REPOBARE/_bare/NBash
29
    remote.HOME_REPOBARE_BARE_NBash.fetch=+refs/heads/*:refs/remotes/HOME_REPOBARE_BARE_NBash/*
30
    remote.MY_ONE_REPOBARE_BARE_NBash.url=/run/media/st/MY_ONE/REPOBARE/_bare/NBash
31
    remote.MY_ONE_REPOBARE_BARE_NBash.fetch=+refs/heads/*:refs/remotes/MY_ONE_REPOBARE_BARE_NBash/*
32
    remote.TOSHIBA_EXT_REPOBARE_BARE_NBash.url=/run/media/st/TOSHIBA_EXT/REPOBARE/_bare/NBash
33
    remote.TOSHIBA_EXT_REPOBARE_BARE_NBash.fetch=+refs/heads/*:refs/remotes/TOSHIBA_EXT_REPOBARE_BARE_NBash/*
34
    remote.TOSH_REPOBARE_BARE_NBash.url=/run/media/st/TOSH/REPOBARE/_bare/NBash
35
    remote.TOSH_REPOBARE_BARE_NBash.fetch=+refs/heads/*:refs/remotes/TOSH_REPOBARE_BARE_NBash/*
36
    remote.GITFLIC_LEGIONER9_NBash.url=git@gitflic.ru:legioner9/nbash.git
37
    remote.GITFLIC_LEGIONER9_NBash.fetch=+refs/heads/*:refs/remotes/GITFLIC_LEGIONER9_NBash/*
38
    remote.GITVERSE_LEGIONER9_NBash.url=ssh://git@gitverse.ru:2222/legioner9/NBash.git
39
    remote.GITVERSE_LEGIONER9_NBash.fetch=+refs/heads/*:refs/remotes/GITVERSE_LEGIONER9_NBash/*
40

41
## git remote -v
42

43
    GITFLIC_LEGIONER9_Book  git@gitflic.ru:legioner9/book.git (fetch)
44
    GITFLIC_LEGIONER9_Book  git@gitflic.ru:legioner9/book.git (push)
45
    GITHUB_LEGIONER9_Book   git@github.com:legioner9/Book.git (fetch)
46
    GITHUB_LEGIONER9_Book   git@github.com:legioner9/Book.git (push)
47
    HOME_REPOBARE_BARE_Book /home/st/REPOBARE/_bare/Book (fetch)
48
    HOME_REPOBARE_BARE_Book /home/st/REPOBARE/_bare/Book (push)
49
    MY_ONE_REPOBARE_BARE_Book       /run/media/st/MY_ONE/REPOBARE/_bare/Book (fetch)
50
    MY_ONE_REPOBARE_BARE_Book       /run/media/st/MY_ONE/REPOBARE/_bare/Book (push)
51
    TOSHIBA_EXT_REPOBARE_BARE_Book  /run/media/st/TOSHIBA_EXT/REPOBARE/_bare/Book (fetch)
52
    TOSHIBA_EXT_REPOBARE_BARE_Book  /run/media/st/TOSHIBA_EXT/REPOBARE/_bare/Book (push)
53
    TOSH_REPOBARE_BARE_Book /run/media/st/TOSH/REPOBARE/_bare/Book (fetch)
54
    TOSH_REPOBARE_BARE_Book /run/media/st/TOSH/REPOBARE/_bare/Book (push)
55
    origin  git@github.com:legioner9/Book.git (fetch)
56
    origin  git@github.com:legioner9/Book.git (push)
57

58
## git rev-parse --git-path hooks/commit-msg (relativ path to hooks/commit-msg)
59

60
    ../../.git/hooks/commit-msg
61

62
## git --exec-path
63

64
    /usr/libexec/git-core
65

66
## git config
67

68
    usage: git config [<options>]
69

70
    Config file location
71
        --global              use global config file
72
        --system              use system config file
73
        --local               use repository config file
74
        --worktree            use per-worktree config file
75
        -f, --file <file>     use given config file
76
        --blob <blob-id>      read config from given blob object
77

78
    Action
79
        --get                 get value: name [value-pattern]
80
        --get-all             get all values: key [value-pattern]
81
        --get-regexp          get values for regexp: name-regex [value-pattern]
82
        --get-urlmatch        get value specific for the URL: section[.var] URL
83
        --replace-all         replace all matching variables: name value [value-pattern]
84
        --add                 add a new variable: name value
85
        --unset               remove a variable: name [value-pattern]
86
        --unset-all           remove all matches: name [value-pattern]
87
        --rename-section      rename section: old-name new-name
88
        --remove-section      remove a section: name
89
        -l, --list            list all
90
        --fixed-value         use string equality when comparing values to 'value-pattern'
91
        -e, --edit            open an editor
92
        --get-color           find the color configured: slot [default]
93
        --get-colorbool       find the color setting: slot [stdout-is-tty]
94

95
    Type
96
        -t, --type <>         value is given this type
97
        --bool                value is "true" or "false"
98
        --int                 value is decimal number
99
        --bool-or-int         value is --bool or --int
100
        --bool-or-str         value is --bool or string
101
        --path                value is a path (file or directory name)
102
        --expiry-date         value is an expiry date
103

104
    Other
105
        -z, --null            terminate values with NUL byte
106
        --name-only           show variable names only
107
        --includes            respect include directives on lookup
108
        --show-origin         show origin of config (file, standard input, blob, command line)
109
        --show-scope          show scope of config (worktree, local, global, system, command)
110
        --default <value>     with --get, use default value when missing entry
111

112
## git var -l
113

114
    user.email=legioner9@inbox.ru
115
    user.name=[alt]legioner9
116
    core.editor=gvim -v
117
    safe.directory=${COMMUNIS_PATH}
118
    safe.directory=${COMMUNIS_PATH}
119
    GIT_COMMITTER_IDENT=[alt]legioner9 <legioner9@inbox.ru> 1715414750 +0700
120
    GIT_AUTHOR_IDENT=[alt]legioner9 <legioner9@inbox.ru> 1715414750 +0700
121
    GIT_EDITOR=gvim -v
122
    GIT_PAGER=less -RS

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.