I have few computers in local netowrk and like to make one of them like git server where other can clone git and push to that computer.
I read this topic but cant make it work
on computer 1 (ip: 88.220.100.20) i create a repo in d:/gitServer/project1 and when i try to clone repo from another computer with Git Dekstop i use url : 88.220.100.20/d:/gitServer/project1 im getting errors like this
Thq question is what im doing wrong and how to make one of the local computers like git server
Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.
CodePudding user response:
let me try to config ssh server on that computer
The other option would be simply to have a shared folder that you can then access through shell from your first computer:
dir \\88.220.100.20\project1
That means GitHub Desktop (or git in command-line) would use the local protocol with an UNC path
file:////88.220.100.20/project1
# or
//88.220.100.20/project1