Visual Studio: Source Control with Git and GitHub
2h 19mBeginner2020-01-03
Authors

Walt Ritscher
Programmer, UI Designer, Staff Instructor at LinkedIn Learning
Course details
Prefer working with an IDE instead of the command line? Discover how to use Git, the defacto distributed source control tool, effectively within Visual Studio. Throughout this course, instructor Walt Ritscher delves into the mapping between Git and GitHub commands and the tools in Visual Studio. After going over key Git concepts, commands, and GUI tools, Walt shows how to initialize a new repository with PowerShell, Visual Studio, and GitHub. He then shows how to add, rename, move and delete files; add a remote repository; clone and fork a repository; and view and handle merge conflicts. Plus, see how to work with branches, create, review and compare pull requests, and more.
Topics include:
- Initializing a repository with PowerShell and Visual Studio
- Adding, renaming, moving, and deleting files
- Connecting to GitHub and other remote servers
- Cloning and forking repositories
- Committing, pushing, and undoing changes
- Rolling back to a prior commit
- Viewing and handling merge conflicts
- Setting up a public repository on GitHub
- Creating a pull request
- Marking milestones with Git tags
Topics include:
- Initializing a repository with PowerShell and Visual Studio
- Adding, renaming, moving, and deleting files
- Connecting to GitHub and other remote servers
- Cloning and forking repositories
- Committing, pushing, and undoing changes
- Rolling back to a prior commit
- Viewing and handling merge conflicts
- Setting up a public repository on GitHub
- Creating a pull request
- Marking milestones with Git tags
Skills covered
Visual StudioVersion ControlDevOps ToolsIntroduction toWeb Development ToolsDevOpsSoftware Development ToolsWeb DevelopmentMicrosoftSoftware Development
Concepts
0. Introduction
- 01 - Use Git effectively within Visual Studio
- 02 - Install Git
- 03 - Install GitHub Extension in Visual Studio
- 04 - Work with multiple users in the exercise files.
1. The Command Line vs. Visual Tools
- 05 - Don t be afraid of the GUI
- 06 - Tour of Git GUI tools
- 07 - Git concepts and commands
2. Create a Repo from a Local Computer
- 08 - Initialize a new repository - PowerShell
- 09 - Initialize a new repository - VS folder
- 10 - Initialize a new repository - VS solution
- 11 - Initialize a new repository - GitHub
- 12 - Add files - PowerShell
- 13 - Add files - VS
- 14 - Rename files - PowerShell
- 15 - Move files - PowerShell
- 16 - Delete files - PowerShell
- 17 - File operations - VS
3. Connect to GitHub and Other Remote Servers
- 18 - Add a remote repository - PowerShell
- 19 - Install Git Credential Manager for Windows
- 20 - Connect and authenticate - PowerShell
- 21 - Connect and authenticate - VS
- 22 - Create an empty GitHub repo - VS
- 23 - Sync existing local remote to GitHub
- 24 - Examine GitHub configuration information
4. Git Concepts and Commands
- 25 - Collaborate with shared repositories
- 26 - Understand when to clone a repository
- 27 - Understand when to fork a repository
5. Collaborate on an Existing Repo
- 28 - Clone the repo - PowerShell
- 29 - Clone the repo - VS
- 30 - Fork a repo
- 31 - Clone a forked repo
6. Push and Pull
- 32 - Change the PowerShell command prompt
- 33 - Show the Git help files from the command prompt
- 34 - Commit to local - VS
- 35 - Push to remote - VS
- 36 - Commit and push - VS
- 37 - Undo changes
- 38 - Show history with Git log - PowerShell
- 39 - Show history in Team Explorer
- 40 - Compare differences - VS
- 41 - When to use revert or reset
- 42 - Rollback to prior commit with revert
- 43 - Rollback a local repo with reset
7. Sync Tools
- 44 - Push to remote by team member
- 45 - Pull and push
- 46 - Use Fetch or Pull to sync with remote
- 47 - Sync - VS
- 48 - View merge conflicts
- 49 - Handle merge conflicts
8. Work with Branches
- 50 - Explore the basic branch actions - PowerShell
- 51 - Explore the branch tools in Visual Studio
- 52 - Basic branch actions - VS
- 53 - Commit changes to another branch
- 54 - Merge changes into the master
9. Pull Requests and GitHub
- 55 - Setup a public repository on GitHub
- 56 - Fork and clone the repository
- 57 - Verify forked project runs on computer
- 58 - Change the HTML in fork
- 59 - Commit and push to fork
- 60 - Create the pull request
- 61 - Review and compare the pull request
- 62 - Have a conversation with contributors
10. Other Operations
- 63 - GitHub tools
- 64 - Mark milestons with Git tags
Next Steps
- 65 - Next steps