我如何授予访问远程git仓库的权限? [英] How can I grant access to a remote git repo?

查看:165
本文介绍了我如何授予访问远程git仓库的权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个项目,我可以访问远程git仓库,我已经多年来一直在部署我的更改,但地址是我的唯一信息。现在,一个新人应该可以访问它,但我不知道我应该如何授予他访问权限。 Google搜索在GitHub中取得了一些成果,但这是命令行,很久以前授予我访问权限的那个人已经不在团队中。有没有一种方法可以授予新用户访问我正在使用的repo的权限?

There is a project where I have access to a remote git repo where I have been deploying my changes for years, but the address is my sole information. Now, a new guy should be able to access it, but I do not know how should I grant him access. Google search yielded some results in GitHub, but this is command-line and the guy who granted me access a long while ago is no longer in the team. Is there a way to grant access to the new guy to the repo I am using?

推荐答案

我已经找到答案了其间:

I have found out the answer in the meantime:

1. ssh <path or alias>
2. vim ~/.ssh/authorized_keys
3. Add the public ssh key.

这篇关于我如何授予访问远程git仓库的权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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