GIT使用总结

来源:互联网 发布:什么叫绿鞋机制知乎 编辑:程序博客网 时间:2024/06/02 06:12

$ git clone ssh://git@119.90.35.205:10023/teleyi/teleyi.git
Cloning into 'teleyi'...
The authenticity of host '[119.90.35.205]:10023 ([119.90.35.205]:10023)' can't b
e established.
RSA key fingerprint is d5:7f:bb:bb:89:2f:f0:c3:4b:fd:f0:97:c1:21:7c:dc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[119.90.35.205]:10023' (RSA) to the list of known ho
sts.
remote: Counting objects: 98798, done.
remote: Compressing objects: 100% (40829/40829), done.
remote: Total 98798 (delta 43964), reused 94722 (delta 41024)
Receiving objects: 100% (98798/98798), 160.40 MiB | 393.00 KiB/s, done.
Resolving deltas: 100% (43964/43964), done.
Checking connectivity... done.
Checking out files: 100% (8155/8155), done.

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjectsv$ cd teleyi

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git status
On branch summer_sprint
Your branch is up-to-date with 'origin/summer_sprint'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   pom.xml

no changes added to commit (use "git add" and/or "git commit -a")

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git remote -v
origin  ssh://git@119.90.35.205:10023/teleyi/teleyi.git (fetch)
origin  ssh://git@119.90.35.205:10023/teleyi/teleyi.git (push)

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git config user.name
mosesmoses

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git config set user.name=dawei.qiao@teleyi.com
error: key does not contain a section: set

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git config
usage: git config [options]

Config file location
    --global              use global config file
    --system              use system config file
    --local               use repository config file
    -f, --file <file>     use given config file
    --blob <blob-id>      read config from given blob object

Action
    --get                 get value: name [value-regex]
    --get-all             get all values: key [value-regex]
    --get-regexp          get values for regexp: name-regex [value-regex]
    --get-urlmatch        get value specific for the URL: section[.var] URL
    --replace-all         replace all matching variables: name value [value_rege
x]
    --add                 add a new variable: name value
    --unset               remove a variable: name [value-regex]
    --unset-all           remove all matches: name [value-regex]
    --rename-section      rename section: old-name new-name
    --remove-section      remove a section: name
    -l, --list            list all
    -e, --edit            open an editor
    --get-color <slot>    find the color configured: [default]
    --get-colorbool <slot>
                          find the color setting: [stdout-is-tty]

Type
    --bool                value is "true" or "false"
    --int                 value is decimal number
    --bool-or-int         value is --bool or --int
    --path                value is a path (file or directory name)

Other
    -z, --null            terminate values with NUL byte
    --includes            respect include directives on lookup


Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git config user.name=dawei.qiao@teleyi.com

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git config user.name=dawei.qiao

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ git config user.email=dawei.qiao@teleyi.com

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$ get config --get-all
sh.exe": get: command not found

Administrator@MOSES-COMPUTER /d/base/workspace/IdeaProjects/teleyi (summer_sprin
t)
$




0 0