首先查看git版本
D:\work\workspace\thrift>git version
git version 2.19.1.windows.1
查看git相關的全局配置項
D:\work\workspace\thrift>git config -l
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=D:/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
core.editor='D:\Program Files\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin
user.name=*******
user.email=*******
http.emptyauth=true
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://github.com/apache/thrift.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
(END)
查看項目git相關信息
庫地址
D:\work\workspace\thrift>git remote -v
origin https://github.com/apache/thrift.git (fetch)
origin https://github.com/apache/thrift.git (push)
遠程分支,還有本地分支與之相對應關係等一系列信息
D:\work\workspace\thrift>git remote show origin
* remote origin
Fetch URL: https://github.com/apache/thrift.git
Push URL: https://github.com/apache/thrift.git
HEAD branch: master
Remote branches:
0.1.x tracked
0.10.0 tracked
0.11.0 tracked
0.12.0 new (next fetch will store in remotes/origin)
0.2.x tracked
0.3.x tracked
0.4.x tracked
0.5.x tracked
0.6.x tracked
0.7.x tracked
0.8.x tracked
0.9.1 tracked
0.9.2 tracked
0.9.3 tracked
0.9.3.1 new (next fetch will store in remotes/origin)
0.9.x tracked
master tracked
py-compiler tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (local out of date)