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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With