简体   繁体   中英

commit is not accessible using TortoiseGit Daemon

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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