将源代码与 Git 源代码控制提供程序和 Visual Studio 同步 [英] Syncing source code with Git source control provider and Visual studio

查看:25
本文介绍了将源代码与 Git 源代码控制提供程序和 Visual Studio 同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这一次,我需要在 Visual Studio 中使用 Git 并且是我的.

蓝色锁符号.

我们希望同步此主要位置上的所有代码.我遗漏了哪些步骤?

解决方案

我认为您是否正在将变更集同步到 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:

https://drive.google.com/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.46operationAutomationgittest

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

The project location is

C:UserszameerDesktopWebApplication1

The initial commit is also done successfully.

A blue lock symbol is also showing

Problem:

The main repository (\192.168.3.46operationAutomationgittest) 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 同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆