目录搜索
GuidesgitattributesgiteverydaygitglossarygitignoregitmodulesgitrevisionsgittutorialgitworkflowsAdministrationgit archivegit bundlegit cleangit filter-branchgit fsckgit gcgit instawebgit reflogBasic Snapshottinggit addgit commitgit diffgit mvgit resetgit rmgit statusBranching and Merginggit branchgit checkoutgit loggit mergegit mergetoolgit stashgit tagDebugginggit bisectgit blamegit grepEmailgit amgit format-patchgit request-pullgit send-emailExternal Systemsgit fast-importgit svnGetting and Creating Projectsgit clonegit initGitgit annotategit archimportgit bisect-lk2009git check-attrgit check-mailmapgit check-ref-formatgit checkout-indexgit cherrygit citoolgit columngit credentialgit credential-cachegit credential-storegit cvsexportcommitgit cvsimportgit cvsservergit diff-filesgit diff-treegit difftoolgit fast-exportgit fetch-packgit fmt-merge-msggit get-tar-commit-idgit guigit http-backendgit http-fetchgit http-pushgit imap-sendgit index-packgit interpret-trailersgit ls-remotegit ls-treegit mailinfogit mailsplitgit merge-filegit merge-indexgit merge-one-filegit merge-treegit mktaggit mktreegit name-revgit notesgit p4git pack-objectsgit pack-redundantgit pack-refsgit parse-remotegit patch-idgit prunegit prune-packedgit quiltimportgit receive-packgit remote-extgit remote-fdgit remote-testgitgit repackgit replacegit rereregit send-packgit sh-i18ngit sh-setupgit shellgit show-branchgit show-indexgit stripspacegit unpack-filegit unpack-objectsgit upload-archivegit upload-packgit vargit verify-commitgit verify-taggit whatchangedgit worktreeInspection and Comparisongit describegit shortloggit showMiscellaneousapi credentialsapi indexgitcligitcore tutorialgitcredentialsgitcvs migrationgitdiffcoregithooksgitkgitnamespacesgitremote helpersgitrepository layoutgitsubmodulesgittutorial 2gitwebgitweb.confpack formatUser ManualPatchinggit applygit cherry-pickgit rebasegit revertPlumbing Commandsgit cat-filegit check-ignoregit commit-treegit count-objectsgit diff-indexgit for-each-refgit hash-objectgit ls-filesgit merge-basegit read-treegit rev-listgit rev-parsegit show-refgit symbolic-refgit update-indexgit update-refgit verify-packgit write-treeServer Admingit daemongit update-server-infoSetup and Configgitgit configgit helpSharing and Updating Projectsgit fetchgit pullgit pushgit remotegit submodule
文字

名称

git-remote-fd  - 将智能传输流反射回调用者

概要

"fd::<infd>,<outfd>" (as URL)

描述

该帮助程序使用指定的文件描述符连接到远程Git服务器。这不是针对最终用户,而是针对调用git fetch,push或archive的程序和脚本。

如果只给出<infd>,则假定它是连接到远程Git服务器(git-upload-pack,git-receive-pack或git-upload-archive)的双向套接字。如果给出了<infd>和<outfd>,则假定它们是连接到远程Git服务器的管道(<infd>是入站管道,<outfd>是出站管道)。

假设在这个助手启动之前,任何握手过程都已经完成(比如发送git://的服务请求)。

<anything>可以是任何字符串。它被忽略。这是为了在URL在某些情况下显示的情况下在URL中向用户提供信息。

环境变量

GIT_TRANSLOOP_DEBUG

如果设置,则打印关于各种读取/写入的调试信息。

示例

git fetch fd::17 master

抓取主文件,使用文件描述符#17与git-upload-pack进行通信。

git fetch fd::17/foo master

同上。

git push fd::7,8 master (as URL)

推送主文件,使用文件描述符#7从git-receive-pack和文件描述符#8读取数据以将数据写入相同的服务。

git push fd::7,8/bar master

Same as above.

另请参阅

gitremote-helpers[1]

上一篇:下一篇: