git - How do i create a remote repository from a local repository in Git?
问题描述
Hi Guys i'm using visual studio 2019 and i'm trying to learn how can i create a remote repository on a local server without using github so other people can work on it (we are in the same room), i'm trying to use only visual studio, git and the cmd
Thanks!
解决方案
Based on what you wrote, what you want is to host your instance of a repository.
You need to configure your instance in a server that is accesible to all of the developers that you expect to collaborate with you. You used the tag cmd which leads me to think you are under Windows. You may use Windows as server, but you may probably be better off with a Linux distro in your server (the machine where you intend to develop may use any OS you want). One option (I'm not affiliated with) is GitLab which has a good documentation on how to deploy your instance in several flavors of Linux, as well as some cloud services, docker, kubernetes. If you decide to stick to Windows, probably something docker-based or kubernetes-based is your option.
Be aware, however, that you don't have to stick to GitLab. There are plenty of self-hosted, open-source Git servers such as:
- gitea
- GNU Savannah
- GitBucket (yes, their source code is in GitHub and no, it's not bitbucket)
- gogs
and many more alternatives... try looking for "self-hosted git server" and you may find many other options
Disclaimer: I don't vouch for any of the tools in this answer nor am I responsible for their malfunction should you choose one of them, I merely looked for several of them. It's your job to see which one fits your use case best
推荐阅读
- r - trim 参数在 mean() 函数中代表什么?
- bosch-iot-suite - 当事物被 Hub-Things Connection 更新时,事物侦听器不会被触发
- html - 为什么我的 CSS 边框没有出现在按钮周围的跨度上?
- css - 如何从外部css文件导入字体
- php - 拆分和分解重定向
- java - 在 Mongo 中插入 JSON
- xpath - 如果存在则选择元素的子元素,否则选择父元素
- asp.net-core - ASP.NET core 自定义日志注入
- f# - 具有模式匹配的 F# 分支逻辑
- amazon-web-services - AWS Cloudwatch 过滤器和模式语法