Set up Visual Studio for several user working on the same project

I have a server where multiple users connect through RDP and work with Visual Studio. Now there is a project which they will have to work at the same time, and want to start implementing local control version.

I have created a repo from a project, opened it with two users and made some tests, but when saving (Ctrl + S) some change, it instantly overwrites the other user (They are both working over the same files).

These are the steps I followed:

  1. Create a project on VS. It’s saved on X:ProjectsTests ; checked the save solution and project on the same directory.

  2. Go to the GIT menu, create GIT Repo local, path X:ProjectsTestsGitTests > Create

If I try to open the repo folder, I only get the .gitignore and .gitattributes in the solution explorer.

Is this the expected behaviour, or have I messed up during the set up? How should I configure it then? All guides I’ve found connect to GitHub which I would rather not.

Thanks for your help

If you don’t want to use GitHub then the best way to work collaboratively in RDP environment is to create different folders for each users and let the main/master folder be there which will be taken care by admin. This way security will also be there as the main branch folder can be protected.
You can achieve this simply by following these steps:

  1. Create the local git repository in Main folder i.e. X:ProjectsMain by using git init git checkout main git add. git commit -m "message"
  2. Create the clone for each user eg. user One, you can create a new folder X:ProjectsOne and clone over there by using command git clone X:ProjectsMain and then create a new branch git checkout branch-one and commit those changes and add the remote of cloned repository to the main repository git remote add cloned_repo_one X:ProjectsOne
  3. The admin of the project then can merge in the main folder by first fetching the branch git fetch cloned_repo_one git merge new-branch-name

This is an ideal way of working collaboratively on a local repository, if there is any better solution then I’ll be happy to discuss it.

Assuming that X: is a shared drive, you only want to create the git repository there, and each user should create their own source code tree under C:Projects or the like.

Actually, ideally X: should be a remote repository and each user should clone it into their local C:Projects folder. VS Code, at least, has the Source Control tab, which on an empty project has the option Clone Repository, which will create a local copy of the repository on the X: drive.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật