Posted on

How to Use One Drive with Git Repository in Conjunction with Visual Studio or VS Code

 

Create a directory on the drive

Create empty repository on that directory

image

 

git init –bare

image

 

Now Repository is created.

 

Go to Visual Studio, and clone that directory, and create empty solution, and add projects file.

image

 

After project is working fine, please add untracked file, and push and sync.

 

Once Initial Sync is done, you can clone that repo, with other name to test.

Note: VS Git client doesn’t pull all the files correclty