如何配置自动推送? [英] How to configure automatic pushing?

查看:99
本文介绍了如何配置自动推送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Mercurial和Git中配置自动推送?
有时我忘了推入电脑,当我移动我的位置时,我与优秀的代码不同步。有没有办法让mercurial和git每隔一小时做一次这样的事情?例如?

How do I configure automatic push in Mercurial and Git? Sometimes I forgot to push in a computer, and when I move my location, I'm out of the sync with the good code. Is there a way to mercurial and git do this every hour, for instance?

推荐答案

在mercurial中,你会把它放在你的 .hg / hgrc

In mercurial you'd put this in your .hg/hgrc

[hooks]
commit = hg push

这篇关于如何配置自动推送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆