在Git服务器上远程创建裸仓库 [英] Creating a bare repository on a Git server remotely

查看:314
本文介绍了在Git服务器上远程创建裸仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有没有办法在Git服务器上从本地机器远程创建裸仓库?我试图消除必须ssh进入的麻烦我的Git服务器,并手动创建裸回购。



这可能不可能,但理想情况下我想创建本地git存储库,并将它们直接推送到我的Git服务器,而不必先在服务器上创建裸露版本。



我是否要求太多的Git?

解决方案

我认为最好的方法是通过ssh,例如:

  $ ssh remoteserver' git init --bare YOURPATH / REPONAME'

您可以使用 SSH无密码,如果你打算使用它很多次。


Is there any way to create bare repositories on a Git server remotely from my local machine?

I'm trying to eliminate the annoyance of having to ssh in to my Git server and create the bare repo manually.

It's probably not possible, but ideally I'd like to create local git repositories, and push them straight away to my Git server without having to create bare versions on the server first.

Am I asking too much of Git?

解决方案

I think the best way is through ssh, something like:

$ ssh remoteserver 'git init --bare YOURPATH/REPONAME'

You can configure to use SSH as password-less if you are going to use it lot of times.

这篇关于在Git服务器上远程创建裸仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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