习惯于SVN,我总是在共享任何更改之前进行"更新",所以在进行任何推送之前我总是先拉.
当我拉动时(即使没有对遥控器进行任何更改)并且看到提交合并时,这很烦人0 changed files with 0 additions and 0 deletions.提交如下:https:
//github.com/UCF/Harvard-Mobile-Web/commit/be9d6b2d1ab196554e080d8b8647a9d16c8a5ddf
在查看提交历史时,我发现这是无用的噪音.
也许有一些我不知道的东西,这个提交有什么意义吗?如果没有,有没有办法阻止git编写空的合并提交?
我知道有可能歪斜,但我没有办法在特定程度上扭曲每个角落.
这是我正在进行的项目:http://map.ucf.edu/
专门查看菜单中的选项卡.现在我正在使用图像,我想为有能力的浏览器改变它.
我知道可以创建一个CSS trapazoid,但这是使用没有内容的边框.最终结果还需要一些圆角.
编辑:从Zoltan Toth的解决方案开始,我能够实现这一目标:演示
div {
height: 20px;
padding:2px 5px 0 5px;
color:white;
background: rgba(0,0,0,.5);
margin: 0 10px;
position: relative;
border-top-left-radius: 6px 4px;
border-top-right-radius: 6px 4px;
font-family:sans-serif;
font-size:13px;
line-height:20px;
vertical-align:bottom;
display:inline-block;
white-space:nowrap;
}
div:before {
content: '';
line-height: 0;
font-size: 0;
width: 0;
height: 0;
border-bottom: 19px solid rgba(0,0,0,.5);
border-left: 9px solid transparent;
position: absolute;
bottom: 0;
left: -9px;
}
div:after {
content: '';
line-height: 0;
font-size: 0;
width: …Run Code Online (Sandbox Code Playgroud) 我在Windows机器上使用Git,git bash总是使用Web版本寻求帮助.我真的很喜欢这个,我想在我的Mac上做同样的事情.
我跑了:
$ git config --global help.format web
$ git config --global web.browser firefox
Run Code Online (Sandbox Code Playgroud)
并且help命令的输出是:
$ The browser firefox is not available as 'firefox'.
Run Code Online (Sandbox Code Playgroud)
我然后设置:
$ git config --global browser.firefox.path /Applications/Firefox.app/Contents/MacOS/firefox-bin
Run Code Online (Sandbox Code Playgroud)
由于我通常打开firefox,它现在哭了:
Firefox的副本已经打开.一次只能打开一份Firefox.
我想要git使用的真正命令是open -a Firefox.app somefile.我试着设置browser.firefox.cmd无济于事.
我的问题:如何配置git以使用web版本并以一种不会导致问题的方式调用/使用firefox,如果它已经打开了?