简体   繁体   中英

Syncing source code with Git source control provider and Visual studio

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:

git仓库

\\\\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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM