We are happy to announce GitLive now works, out-of-the-box in offline mode, with any Git repository in VS Code!
Previously we only supported repositories from the big four hosting services (GitHub, GitLab, Bitbucket, Azure DevOps) and required you to authorize access to the service before you could start using GitLive.
Now when you install GitLive it will start in offline mode. The offline mode uses the data from your local Git repository only and nothing is sent outside your network. Your repository should have a remote but it can be hosted anywhere.
In the GitLive tab you'll see all the authors of branches currently ahead of your default branch, the last commit to a branch determines who it will appear under.
Drill down into an individual author’s branches to see the files changed and inspect diffs plus view the associated issue or pull request.
The changes from the branches shown in the GitLive tab also appear for your current file in the gutter of your editor. The gutter indicators show the differences in the file from other branches compared to your local version. It even shows you when the changes conflict with your own - a kind of early warning system for merge conflicts!
Rollover the affected lines to inspect a change and see the diff, what branch they're from and even cherry-pick changes straight into your local file.
And you can still sign in to go real-time and see your teammate's unpushed changes in the team window, get notified in the gutter the moment you make a conflicting change, plus make calls and codeshare to edit together simultaneously.
Signing in still requires a repository from the big four hosting services for now but we'll be adding support for other services, including self-hosted, soon!
Don't have the GitLive extension installed yet? You can find it here, and if want to learn more about the latest release, check out this blog post.
Top comments (5)
What a game-changing enhancement!
That looks cool!
I just came across GitLive. Can you explain to me how is it different to GitLens? I would like to give GitLive a try.
@madhavvij Happy to hear you'd like to give GitLive a try! Would be great to hear how it works for you :)
Answering your question: GitLens has focused more on making it easier to observe other users' historic changes holistically, whether that through side-by-side file comparisons or displaying git blames in VS Code.
GitLive has taken a more proactive approach to enable the user to collaborate with their colleagues, in both VS Code and JetBrains. The offline mode is just the tip of the iceberg, as it extends the IDE, allowing you to view and easily cherry-pick entire file changes from your teammates' branches in the team tree, or just line-by-line conflicts, right inside the editor.
So all in all, GitLive is more geared to developers when they actively working and especially working together while GitLens is a useful tool for looking at past changes.