简体   繁体   English

在Mac上使用git仓库

[英]use git repository on mac

I am novice using Git repository and I have some questions. 我是使用Git存储库的新手,但有一些问题。 I have downloaded git to Mac and I have done a commit of one of my projects. 我已经将git下载到Mac,并且完成了我的一个项目。 This commit is locally in my computer? 该提交在我的计算机本地吗? How can I access to this repository from other computer or is there some tool to make a repository in a server that only I can access. 如何从其他计算机访问此存储库,或者是否有一些工具可以在只能访问的服务器上创建存储库。 Thank you so much. 非常感谢。

This commit is locally in my computer? 该提交在我的计算机本地吗?

Yes. 是。 You would need to push it to a bare repo in order for said commit to be visible by anyone having access to that remote repo. 您需要将其推送到裸仓库中,以使任何可以访问该远程仓库的人都能看到该提交。

The simplest way to have said access is through a shared folder. 获得所述访问权的最简单方法是通过共享文件夹。

Otherwise, for remote repo managed by a server, you would need a listener in order to allow other users to clone your remote repo (or for you to push to it). 否则,对于由服务器管理的远程回购,您将需要一个侦听器,以允许其他用户克隆您的远程回购(或推送给它)。
That listener can be a git daemon, ssh or https. 该侦听器可以是git守护程序,ssh或https。 See Git Protocols for more. 有关更多信息,请参见Git协议

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM