You access its graph view (git log) from the built-in git tab in VS Code:Īccessing Git Graph from the Source Control/Git tab in VS Code. It also supports some additional features like comparing between commits and helping facilitate code reviews (as well as automatically replacing Emoji Shortcodes with the corresponding emoji (or gitmoji) in commit messages). Git Graph doesn't have nearly the features that a full GUI git client like GitKraken has, but it does a nice job of being a lightweight tool for visualizing the state of your repository's commits across different branches and repositories. I often want to know what I'm getting into at that point before I start my merge.
I find it very useful when I'm working with a repo and I see that, for instance, I'm both 2 commits ahead and 3 commits behind my origin repository. Git Graph does just what I want, which is to visualize commits to my git repository in a graph format that lets me easily see which commits and branches are where relative to one another. I'm also a fan of GitLens while you're at it. The one I quickly found was Git Graph, by mhutchie. There are quite a few git-related extensions available now for VS Code. So I figured I'd investigate what VS Code had to offer via extensions and I wasn't disappointed!
BITBUCKET EXTENSION FOR VISUAL STUDIO INSTALL
But I only use GitKraken's free client for open source projects, and in any case I didn't want to install another full program on this machine. I've long been a fan of some client tools to help with this, like SourceTree and GitKraken (my current favorite). Something like this (this is actually from Microsoft's documentation repository): In this case, I was working from a locked down laptop for a financial services company that's a client of mine (talk to me if you'd like help building better software), and I wanted to see a good visualization of the my branch in relation to other branches. You can view my full list of tools and extensions I use here if you're interested. I recently discovered a very nice VS Code extension to use with git.