deepthan/Front-end-resource-collection

git查看本地分支对应远程哪个分支

deepthan opened this issue · 0 comments

  • git branch -vv
    可查看对应分支信息
dev    2348b79 [origin/dev: ahead 3, behind 4] add
* i18n   0e7acc6 [origin/i18n: ahead 4, behind 18] i18n translate
master 640fd9e changes
 

上面第一行前面dev表示的是本地分支名,后面方括号里面的[origin/dev]表示的是本地分支dev对应的远程分支。

  • 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
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
user.name=deepthan
user.email=deepthan@163.com
credential.helper=store
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=https://github.com/deepthan
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.dev.remote=origin
branch.dev.merge=refs/heads/dev