Skip to content

Latest commit

 

History

History
64 lines (54 loc) · 2.46 KB

versioncontrol.md

File metadata and controls

64 lines (54 loc) · 2.46 KB
Order Area TOCTitle ContentId PageTitle DateApproved MetaDescription MetaSocialImage
introvideos
Version Control
2447F8EB-15F1-4279-B621-126C7B8EBF4B
Version control in Visual Studio Code
5/31/2022
Learn how to use Git version control basics in Visual Studio Code.
images/opengraph/introvideos-social.png

Version control in VS Code

In this tutorial, we will learn how to use the basics of Git version control in Visual Studio Code. For more information about integrated Git support, including how to work with remote repositories, read on in the related resources section below.

<iframe src="https://www.youtube.com/embed/i_23KUAEtUM?autoplay=true" width="640" height="320" allowFullScreen="true" frameBorder="0" title="Using Git with Visual Studio Code"></iframe>

Here's the next video we recommend: Customize

Pick another video from the list: Introductory Videos

Video outline

  • Install Git
  • Open Folder
    • File > Open Folder (kb(workbench.action.files.openFolder))
  • Source Control
    • View > Source Control (SCM) (kb(workbench.view.scm))
  • Initialize repository
    • main is the default branch
  • Open the Command Palette.
    • View > Command Palette (kb(workbench.action.showCommands))
  • Rename a branch
    • Git: Rename Branch
  • File version control status
    • U - Untracked file
    • A - Added file
    • M - Modified file
  • Commit file
    • Commit ☑️(check mark) button
  • Create a branch
    • Git: Create Branch
  • Diff editor
    • Inline View button
  • Stage changes
    • Stage Changes ➕ button
  • Switch branches
    • Status bar branch item (lower left)
  • Merge branch
    • Views and More Actions (...) > Branch > Merge Branch
  • Publish branch to GitHub
  • Clone repository
    • Git: Clone > Clone from URL

Next video

Related resources