Git - warning: push.default is unset
今天心血来潮想要把获取窗体句柄的程序給开源了。
可在执行 git push 时看到下面的消息:
warning:push.defaultisunset;itsimplicitvaluehaschangedinGit2.0from'matching'to'simple'.Tosquelchthismessageandmaintainthetraditionalbehavior,use:gitconfig--globalpush.defaultmatchingTosquelchthismessageandadoptthenewbehaviornow,use:gitconfig--globalpush.defaultsimpleWhenpush.defaultissetto'matching',gitwillpushlocalbranchestotheremotebranchesthatalreadyexistwiththesamename.SinceGit2.0,Gitdefaultstothemoreconservative'simple'behavior,whichonlypushesthecurrentbranchtothecorrespondingremotebranchthat'gitpull'usestoupdatethecurrentbranch.See'githelpconfig'andsearchfor'push.default'forfurtherinformation.(the'simple'modewasintroducedinGit1.7.11.Usethesimilarmode'current'insteadof'simple'ifyousometimesuseolderversionsofGit)Countingobjects:18,done.Deltacompressionusingupto4threads.Compressingobjects:100%(18/18),done.Writingobjects:100%(18/18),9.44KiB|0bytes/s,done.Total18(delta1),reused0(delta0)error:RPCfailed;result=52,HTTPcode=0fatal:Theremoteendhungupunexpectedlyfatal:TheremoteendhungupunexpectedlyEverythingup-to-date
细心一读message,就知道问题所在了
$gitconfig--globalpush.defaultmatching
记录下来曾经踩过的坑。
我已经在GitHub上开源了这个获取鼠标所在位置的窗体句柄小程序:
https://github.com/lybing/HandleCapture.git
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。