git技巧:综合

来源:互联网 发布:ipad看txt软件 编辑:程序博客网 时间:2024/05/16 07:47

查看git版本

$ git --versiongit version 1.7.11.msysgit.1

查看git所有配置项

$ git config -lcore.symlinks=falsecore.autocrlf=truecolor.diff=autocolor.status=autocolor.branch=autocolor.interactive=truepack.packsizelimit=2ghelp.format=html...

查看git某个配置

$ git config gui.encodingutf-8

查看git远程库地址

$ git remote -vorigin  http://xhl@github.com/web/crm2.git (fetch)origin  http://xhl@github.com/web/crm2.git (push)

查看remote地址,远程分支,还有本地分支与之相对应关系等一系列信息(很有用哦,当你发现本地分支和远程库的不一样时,见 这里)

$ git remote show origin* remote origin  Fetch URL: https://github.com/appMobi/jQ.Mobi.git  Push  URL: https://github.com/appMobi/jQ.Mobi.git  HEAD branch: master  Remote branches:    1.1    new (next fetch will store in remotes/origin)    1.2    tracked    beta   tracked    master 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)


原创粉丝点击