1

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 repository

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

done successfully

A blue lock symbol is also showing

also showing

Problem:

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

blank

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

5
  • 1
    I don't think it's a good practice to sync this way. git should be hosted by app that controls access to server ".git" folder otherwise you may have inconsistent state there. Commented Dec 18, 2015 at 7:43
  • @Vlad - Thanks a lot for investing your time!! Can you please teach me how to handle "source control" using git in visual studio? Commented Dec 18, 2015 at 9:52
  • 1
    I'm not using Git extension for VS so can't answer about it. I'm just pointing that you should use something like gitstack.com to host server instead of shared folder. (or bitbucket.org as external hosting service) Commented Dec 18, 2015 at 13:51
  • @Vlad, I am under the impression that git will handle file locking appropriately, so pushing / pulling should always be atomic actions, even on a shared folder. Have you actually encountered this problem, or is this speculation? Commented Dec 29, 2015 at 16:53
  • @ChrisNielsen, locking should work on local computer but I'm not sure about shared folder behavior. I never used git with shared folder so this is just my assumption. Commented Dec 29, 2015 at 17:42

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.