Posted on 1 Comment

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

1 thought on “How to Use One Drive with Git Repository in Conjunction with Visual Studio or VS Code

  1. Somehow Bower_Components was not uploaded onto repository.
    Following command helps.

    git add . –force

Leave a Reply

Your email address will not be published. Required fields are marked *