Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Git client in Visual Studio 2013 is "offline"

Visual Studio says that git is offline. Not just one git repo, but git itself. The option to connect to a new repo is gone and any existing projects will be opened in offline mode even when they are on the local machine.

like image 843
Jonathan Allen Avatar asked Aug 13 '14 01:08

Jonathan Allen


People also ask

Does Git work offline?

Yes, you can use Git offline. Git only requires an Internet connection when you use commands such as git remote , git pull , and git push with a remote repository that is stored on an Internet server.


1 Answers

Possible fixes:


Delete the contents of this folder, then restart Visual Studio.

%LOCALAPPDATA%\Microsoft\VisualStudio\12.0\ComponentModelCache

Switch the source control plugin to TFS (or another provider), then switch it back to "Microsoft Git Provider"


Open a different Git repository, then reopen the offline repo.


Uninstall unnecessary source control plugins (e.g. Ahnk SVN when only using Git projects)


The refs/head/master file got corrupted. Re-clone the repo

like image 198
4 revs, 2 users 96% Avatar answered Sep 28 '22 16:09

4 revs, 2 users 96%