将源代码与Git源代码管理提供程序和Visual Studio同步

编程入门 行业动态 更新时间:2024-10-25 21:23:26
本文介绍了将源代码与Git源代码管理提供程序和Visual Studio同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这一次,我需要与Visual Studio合作,并且是我的。

A蓝色锁定符号为。

我们想要同步这个主要位置上的所有代码。我错过了哪些步骤?

解决方案

我想你是否将变更集同步到192.168.3.46存储库,实际更新该存储库的工作目录。如果是这种情况,那么我会希望一个.git子文件夹是存储库文件夹中的唯一项目。

默认情况下可以隐藏此文件夹。你有没有设置你的Windows资源管理器显示隐藏的文件和文件夹?

如果你想更新存储库的工作文件夹,你可以使用标准的git命令来做到这一点。如果你想要做的是推拉变更集(但它也不会伤害任何东西),这不应该是必要的。

This time, I need to work with Git with Visual studio and is my first time source control configuration, so please bear with me :)

concept:

drive.google/file/d/0B0_k0QpCVjHYZFFyRng4b2R5b2s/view?usp=sharing

Aim:

  • Sync all developers code to a single repository using Git & it's provider in Visual studio.
  • Allow developers to check in from and push to this repository
  • Revert back to the last working condition
  • Other advantages of version control

What is already done:

Following this article, I have setup the main git repository location as:

\\192.168.3.46\operation\Automation\gittest

The code repository will be handled on our local LAN only.

The project location is

C:\Users\zameer\Desktop\WebApplication1

The initial commit is also done successfully.

A blue lock symbol is also showing

Problem:

The main repository (\\192.168.3.46\operation\Automation\gittest) is appearing to be blank.

We wanted to sync all code on this main location. What steps I'm missing?

解决方案

I think are you sync'ing changesets to the 192.168.3.46 repository, but nothing is actually updating that repository's working directory. If this is the case, then I would expect a ".git" subfolder to be the only item in the repository's folder.

This folder may be hidden by default. Have you set your windows explorer to show hidden files and folders?

If you want to update the repository's working folder, you can use the standard git commands to do so. This should not be necessary if all you want to do is push and pull changesets (but it would not hurt anything either).

更多推荐

将源代码与Git源代码管理提供程序和Visual Studio同步

本文发布于:2023-05-31 22:06:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/400251.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:源代码   程序   Studio   Git   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!