From the course: Visual Studio: Source Control with Git and GitHub

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Show history with Git log: PowerShell

Show history with Git log: PowerShell - Visual Studio Tutorial

From the course: Visual Studio: Source Control with Git and GitHub

Start my 1-month free trial

Show history with Git log: PowerShell

- [Instructor] Think about how much information is stored in a repository if you work on a project for a long time. You're going to have lots of commits. And you can look at that history with the git log command. So this goes into the repository, looking up all of the log information that's stored in there and outputs it to your shell. In this case, PowerShell. Let's take a look at some of the information shown here. At the very top we show a commit. And this commit was made into master. I am looking at the master branch on local. That's what's in green. And the red text indicates what's on the remote. So I am working with the origin remote and I am on master. So at this point, I am on master on both. And if I make any changes and commit them now, that will put them at the head of this list. That's what this stands for. I am looking at the head of the list and if I make any active commits, they'll go there. And…

Contents