From the course: Visual Studio: Source Control with Git and GitHub
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Show the Git help files from the command prompt - Visual Studio Tutorial
From the course: Visual Studio: Source Control with Git and GitHub
Show the Git help files from the command prompt
- When you install git, the installer adds a folder full of help files to your local drive. Use the help command in powershell to read these help docs. So type in git help and then the name of the command. I'll do that again with a different command. And let's talk about what you see. What happens is powershell launches this file, git-commit_html and of course this contains all the information about how to use the commit command or over here we got all the information how to use the branch command, including the name of the command, a synopsis of how to use it and all the switches that are available, detailed descriptions, and then all the options that are available. Same over here in the commit file, look at all these options that are available. That is the main benefit of using powershell or the command line over visual studio. If you have a complex command or set of tasks you need to perform in git, you will find…
Contents
-
-
-
-
-
-
-
-
(Locked)
Change the PowerShell command prompt1m 19s
-
(Locked)
Show the Git help files from the command prompt1m 24s
-
Commit to local: VS2m 52s
-
(Locked)
Push to remote: VS1m 16s
-
(Locked)
Commit and push: VS1m 16s
-
(Locked)
Undo changes3m 6s
-
(Locked)
Show history with Git log: PowerShell2m 19s
-
(Locked)
Show history in Team Explorer1m 53s
-
(Locked)
Compare differences: VS2m 21s
-
(Locked)
When to use revert or reset3m 3s
-
(Locked)
Rollback to prior commit with revert55s
-
(Locked)
Rollback a local repo with reset1m 46s
-
(Locked)
-
-
-
-
-