使用TortoiseGit守护进程无法访问提交 [英] commit is not accessible using TortoiseGit Daemon

查看:340
本文介绍了使用TortoiseGit守护进程无法访问提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



共享新添加的文件或存储库中的更改的步骤:

这是我如何在不推送到远程存储库的情况下共享本地分支中的更改。 p>


  1. 选择一个项目并在其上创建一个分支。

    TortoiseGit> Create Branch

  2. .com / 6BwgJ.pngrel =nofollow noreferrer> p>


    1. 然后切换到新创建的分支。

      TortoiseGit>切换/结帐

    2. b




    1. 在项目中对现有文件进行任何更改或添加新文件。


    1. 将更改提交到新创建的分支。

      Git Commit>新分行 $ b



      选择并检查修改或新创建的文件, 提交




      1. 将其分享到本地存储库并使其可见并不会将其推送到远程存储库或远程起源。 TortoiseGit>守护进程





      2. 现在

      ,我的问题是。为什么当我克隆守护进程分支时,它会抛出异常?



      p>如果你使用TortoiseGit启动git守护进程,只需使用git.exe进程对话框中提供的URL:git://10.192.20.140/,则不需要指定存储库名称或分支名称。如果你想克隆一个特定的分支,你必须在克隆对话框中输入这个分支(或者添加特定的参数到 git clone )。



      git clone git://10.192.20.140/


      This is how I share the changes in our local branch without pushing to remote-repository.

      Steps to share a new added file or changes in repository:

      1. select a project and create a branch on it.

        TortoiseGit > Create Branch

      1. then switch to newly created branch.

        TortoiseGit > Switch/Checkout

      1. inside the project make any changes to an existing file or add new file.

      1. commit the changes to newly created branch.

        Git Commit > new branch

      Select and check the file that were modified or newly created and Commit.

      1. to share it to local repository and to make it to visible with-out pushing it to remote-repository or remote-origin. TortoiseGit > Daemon

      2. check-out the branch by git clone and use the git://< ip address >/< branch >. in our case we create the test_branch so the url looks like this git://10.192.20.140/test_branch

      now, my question is. why is it that when i clone that daemon branch it will then throw an exception of?

      解决方案

      If you started the git daemon using TortoiseGit just use URL presented in the git.exe progress dialog: "git://10.192.20.140/", there is no need to specify a repository name or a branch name. If you want to clone a specific branch you have to enter this in the clone dialog (or add specific parameters to git clone).

      git clone git://10.192.20.140/

      这篇关于使用TortoiseGit守护进程无法访问提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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