 Pro Git 2nd Edition 2.1.413and outs of working in a distributed source control environment. A remote repository is generally a bare repository — a Git repository that has no working directory. Because the repository is only used no reason to have a snapshot checked out on disk; it’s just the Git data. In the simplest terms, a bare repository is the contents of your project’s .git directory and nothing else. The Protocols Git You stick the bare repository copy somewhere everyone has shared access to and set the read/write permissions as you would for any other shared directory. We’ll discuss how to export a bare repository copy0 码力 | 501 页 | 17.96 MB | 1 年前3 Pro Git 2nd Edition 2.1.413and outs of working in a distributed source control environment. A remote repository is generally a bare repository — a Git repository that has no working directory. Because the repository is only used no reason to have a snapshot checked out on disk; it’s just the Git data. In the simplest terms, a bare repository is the contents of your project’s .git directory and nothing else. The Protocols Git You stick the bare repository copy somewhere everyone has shared access to and set the read/write permissions as you would for any other shared directory. We’ll discuss how to export a bare repository copy0 码力 | 501 页 | 17.96 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413Protocol The HTTP Protocols The SSH Protocol The Git Protocol Getting Git on a Server Putting the Bare Repository on a Server Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon outs of working in a distributed source control environment. A remote repository is generally a bare repository — a Git repository that has no working directory. Because the repository is only used no reason to have a snapshot checked out on disk; it’s just the Git data. In the simplest terms, a bare repository is the contents of your project’s .git directory and nothing else. The Protocols Git0 码力 | 731 页 | 21.49 MB | 1 年前3 Pro Git 2nd Edition 2.1.413Protocol The HTTP Protocols The SSH Protocol The Git Protocol Getting Git on a Server Putting the Bare Repository on a Server Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon outs of working in a distributed source control environment. A remote repository is generally a bare repository — a Git repository that has no working directory. Because the repository is only used no reason to have a snapshot checked out on disk; it’s just the Git data. In the simplest terms, a bare repository is the contents of your project’s .git directory and nothing else. The Protocols Git0 码力 | 731 页 | 21.49 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413 Protocol The HTTP Protocols The SSH Protocol The Git Protocol Getting Git on a Server Putting the Bare Repository on a Server Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon outs of working in a distributed source control environment. A remote repository is generally a bare repository — a Git repository that has no working directory. Because the repository is only used no reason to have a snapshot checked out on disk; it’s just the Git data. In the simplest terms, a bare repository is the contents of your project’s .git directory and nothing else. The Protocols Git0 码力 | 691 页 | 13.35 MB | 1 年前3 Pro Git 2nd Edition 2.1.413 Protocol The HTTP Protocols The SSH Protocol The Git Protocol Getting Git on a Server Putting the Bare Repository on a Server Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon outs of working in a distributed source control environment. A remote repository is generally a bare repository — a Git repository that has no working directory. Because the repository is only used no reason to have a snapshot checked out on disk; it’s just the Git data. In the simplest terms, a bare repository is the contents of your project’s .git directory and nothing else. The Protocols Git0 码力 | 691 页 | 13.35 MB | 1 年前3
 Pro Git 中文版 第2版 2.1.66务。 如果你对架设自己的服务器没兴趣,可以跳到本章最后一节去看看如何申请一个代码托管服务的帐户然后继续下 一章,我们会在那里讨论分布式源码控制环境的林林总总。 一个远程仓库通常只是一个裸仓库(bare repository)——即一个没有当前工作目录的仓库。 因为该仓库仅仅 作为合作媒介,不需要从磁盘检查快照;存放的只有 Git 的资料。 简单的说,裸仓库就是你工程目录内的 .git 子目录内容,不包含其他资料。 钩子)。 此时,只要能访问 web 服务器上你的版本库,就可以克隆你的版本库。 下面是设置从 HTTP 访问版本 库的方法: $ cd /var/www/htdocs/ $ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update 库。 这通常是很简 单的。 为了通过克隆你的仓库来创建一个新的裸仓库,你需要在克隆命令后加上 --bare 选项。 按照惯例,裸 仓库的目录名以 .git 结尾,就像这样: $ git clone --bare my_project my_project.git Cloning into bare repository 'my_project.git'... done. 现在,你的 my_project0 码力 | 501 页 | 19.30 MB | 1 年前3 Pro Git 中文版 第2版 2.1.66务。 如果你对架设自己的服务器没兴趣,可以跳到本章最后一节去看看如何申请一个代码托管服务的帐户然后继续下 一章,我们会在那里讨论分布式源码控制环境的林林总总。 一个远程仓库通常只是一个裸仓库(bare repository)——即一个没有当前工作目录的仓库。 因为该仓库仅仅 作为合作媒介,不需要从磁盘检查快照;存放的只有 Git 的资料。 简单的说,裸仓库就是你工程目录内的 .git 子目录内容,不包含其他资料。 钩子)。 此时,只要能访问 web 服务器上你的版本库,就可以克隆你的版本库。 下面是设置从 HTTP 访问版本 库的方法: $ cd /var/www/htdocs/ $ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update 库。 这通常是很简 单的。 为了通过克隆你的仓库来创建一个新的裸仓库,你需要在克隆命令后加上 --bare 选项。 按照惯例,裸 仓库的目录名以 .git 结尾,就像这样: $ git clone --bare my_project my_project.git Cloning into bare repository 'my_project.git'... done. 现在,你的 my_project0 码力 | 501 页 | 19.30 MB | 1 年前3
 Pro Git 中文版 第2版 2.1.66如果你对架设自己的服务器没兴趣,可以跳到本章最后一节去看看如何申请一 个代码托管服务的帐户然后继续下一章,我们会在那里讨论分布式源码控制环 境的林林总总。 一个远程仓库通常只是一个裸仓库(bare repository)——即一个没有当前 工作目录的仓库。 因为该仓库仅仅作为合作媒介,不需要从磁盘检查快照; 存放的只有 Git 的资料。 简单的说,裸仓库就是你工程目录内的 .git 子目录 钩子)。 此时,只要能访问 web 服务器上你的版本 库,就可以克隆你的版本库。 下面是设置从 HTTP 访问版本库的方法: $ cd /var/www/htdocs/ $ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update 前工作目录的仓库。 这通常是很简单的。 为了通过克隆你的仓库来创建一个 新的裸仓库,你需要在克隆命令后加上 --bare 选项。 按照惯例,裸仓库的目 录名以 .git 结尾,就像这样: $ git clone --bare my_project my_project.git Cloning into bare repository 'my_project.git'... done. 现在,你的 my_project0 码力 | 670 页 | 13.59 MB | 1 年前3 Pro Git 中文版 第2版 2.1.66如果你对架设自己的服务器没兴趣,可以跳到本章最后一节去看看如何申请一 个代码托管服务的帐户然后继续下一章,我们会在那里讨论分布式源码控制环 境的林林总总。 一个远程仓库通常只是一个裸仓库(bare repository)——即一个没有当前 工作目录的仓库。 因为该仓库仅仅作为合作媒介,不需要从磁盘检查快照; 存放的只有 Git 的资料。 简单的说,裸仓库就是你工程目录内的 .git 子目录 钩子)。 此时,只要能访问 web 服务器上你的版本 库,就可以克隆你的版本库。 下面是设置从 HTTP 访问版本库的方法: $ cd /var/www/htdocs/ $ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update 前工作目录的仓库。 这通常是很简单的。 为了通过克隆你的仓库来创建一个 新的裸仓库,你需要在克隆命令后加上 --bare 选项。 按照惯例,裸仓库的目 录名以 .git 结尾,就像这样: $ git clone --bare my_project my_project.git Cloning into bare repository 'my_project.git'... done. 现在,你的 my_project0 码力 | 670 页 | 13.59 MB | 1 年前3
共 5 条
- 1














