Stage ChangesĪfter your Git repository is set up, it’s time to create your initial commit (a commit is a recorded state of your whole repository you can later move back to). git folder inside your workspace (you can’t see this from VS Code, as it’s a hidden directory, but you can find it in your file manager in the root folder of your project), and it will also add your untracked files to the Side Bar. To do so, click on the Initialize git repository button in the Git View. If your workspace isn’t yet tracked by Git, first you need to initialize a new repository. Atlassian’s Git Cheat Sheet (PDF) - this is the fastest way if you’ve already used Git, but don’t remember one or two commands.Atlassian’s Git tutorial - Atlassian is the company behind the Bitbucket source code hosting platform (similar to Github). You need to install at least version 2.0.0 to make VS Code’s Git features work properly.Īlthough Visual Studio Code allows you to manage Git visually, if you also want to learn how to use Git from the command line, here are some useful resources: You can quickly download it from Git’s official website. Read more: Increase productivity in Visual Studio Code with key binding Install GitĪs Visual Studio Code uses the Git install of your computer, first you need to install Git. The Side Bar contains a separate Git View you can quickly open by clicking on the Git icon in the View Bar ( see VS Code’s parts), or by hitting the Ctrl+ Shift+ G key binding. Visual Studio Code supports Git by default, which means you don’t have to install any packages or extensions to use it. It’s also used by Github, the popular Git repository hosting service. Git is a distributed version control system, that allows you to track your work, move back and forth between versions, and work on different branches at the same time. Integrated Git support is one of the greatest features of Visual Studio Code, Microsoft’s new source code editor.
0 Comments
Leave a Reply. |