git的配置:

Administrator@SC-201810302356 MINGW64 /c/wamp64/www
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
Created directory '/c/Users/Administrator/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:nIYs72VbtbLfCkZPFZVfTPw6yc0IhWE94sfPnd5eYh8 Administrator@SC-201810302356
The key's randomart image is:
+---[RSA 2048]----+
|            o+.=+|
|           .o +o+|
|           . +..+|
|     . o .  o.o o|
|    . o S . o+ Oo|
|     o . . + .*.*|
|      . o = o +Eo|
|     . o + + o ++|
|      . . ..o...o|
+----[SHA256]-----+
Administrator@SC-201810302356 MINGW64 /c/wamp64/www
$ ls
address/  firmware/  meituan/
Administrator@SC-201810302356 MINGW64 /c/wamp64/www
$ cd
Administrator@SC-201810302356 MINGW64 ~
$ cd .ssh
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ ls
id_rsa  id_rsa.pub
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ ls
id_rsa  id_rsa.pub
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ cd
Administrator@SC-201810302356 MINGW64 ~
$ ls
 「开始」菜单@
'3D Objects'/
 ansel/
 AppData/
'Application Data'@
 Contacts/
 Cookies@
 Desktop/
 Documents/
 Downloads/
 Favorites/
 IntelGraphicsProfiles/
 Links/
'Local Settings'@
 MicrosoftEdgeBackups/
 Music/
'My Documents'@
 NetHood@
 NTUSER.DAT
 ntuser.dat.LOG1
 ntuser.dat.LOG2
 NTUSER.DAT{1c3790b4-b8ad-11e8-aa21-e41d2d101530}.TM.blf
 NTUSER.DAT{1c3790b4-b8ad-11e8-aa21-e41d2d101530}.TMContainer00000000000000000001.regtrans-ms
 NTUSER.DAT{1c3790b4-b8ad-11e8-aa21-e41d2d101530}.TMContainer00000000000000000002.regtrans-ms
 ntuser.ini
 OneDrive/
 Pictures/
 PrintHood@
 Recent@
'Saved Games'/
 Searches/
 SendTo@
 Templates@
 Videos/
Administrator@SC-201810302356 MINGW64 ~
$ cd dasktop
bash: cd: dasktop: No such file or directory
Administrator@SC-201810302356 MINGW64 ~
$ cd .dasktop
bash: cd: .dasktop: No such file or directory
Administrator@SC-201810302356 MINGW64 ~
$ cd .ssh
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ ls
id_rsa  id_rsa.pub
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
user.name=Anderson-An
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ git config --global
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_regex]
    --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           find the color configured: slot [default]
    --get-colorbool       find the color setting: slot [stdout-is-tty]
Type
    -t, --type <>         value is given this 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)
    --expiry-date         value is an expiry date
Other
    -z, --null            terminate values with NUL byte
    --name-only           show variable names only
    --includes            respect include directives on lookup
    --show-origin         show origin of config (file, standard input, blob, command line)
    --default <value>     with --get, use default value when missing entry
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ git config --global user.name'Anderson'
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ git config  --global user.email anderson_an@163.com
Administrator@SC-201810302356 MINGW64 ~/.ssh
$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
user.name=Anderson-An
user.email=anderson_an@163.com
=============================================================
Administrator@SC-201810302356 MINGW64 /c/wamp64/www
$ git init
Initialized empty Git repository in C:/wamp64/www/.git/
Administrator@SC-201810302356 MINGW64 /c/wamp64/www (master)
$ git remote add origin https://github.com/Anderson-An/myDemo.git
Administrator@SC-201810302356 MINGW64 /c/wamp64/www (master)

转载于:https://www.cnblogs.com/Anderson-An/p/9944541.html

已标记关键词 清除标记
表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页