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 - Visual Studio Tutorial
From the course: Visual Studio: Source Control with Git and GitHub
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
-
-
-
-
-
-
-
-
Change the PowerShell command prompt1m 19s
-
Show the Git help files from the command prompt1m 24s
-
Commit to local: VS2m 52s
-
Push to remote: VS1m 16s
-
Commit and push: VS1m 16s
-
Undo changes3m 6s
-
Show history with Git log: PowerShell2m 19s
-
Show history in Team Explorer1m 53s
-
Compare differences: VS2m 21s
-
When to use revert or reset3m 3s
-
Rollback to prior commit with revert55s
-
Rollback a local repo with reset1m 46s
-
-
-
-
-
-