AI Hints
Home›Git & GitHub Tutorial›Tools and Hooks
Git & GitHub · Lesson 112 of 144

Git in Your Editor

VS Code and friends.

⏱ 2 min read▶ Video at 2:02:41🎓 Free
Watch this lesson in the Git & GitHub courseWatch on YouTube ↗Full Git & GitHub course

You don't have to use Git only in the terminal. Most code editors have Git built in, with buttons for the same commands you've learned. Knowing the commands makes those buttons easy to understand.

Git in Your Editor
From the video: Git in Your Editor
  • Git is built into editors
  • Buttons for the same commands
  • The commands explain the buttons

Buttons and commands

In VS Code, the source control panel lists your changed files. The plus button next to a file is git add. The message box and the tick button are git commit. The sync button runs git pull, then git push. And clicking a file shows a side by side diff.

In VS CodeIs the same as
Changed files listgit status
+ next to a filegit add <file>
Message box + ✓git commit -m
Sync buttongit pull, then git push
Click a filegit diff

Other tools

There are other friendly tools too. GitHub Desktop is a free app, with buttons for everything. The GH command line tool lets you open pull requests from the terminal. And many people mix them, terminal for some things, and buttons for others. Use whatever helps you, now that you know what happens underneath.

VS Codesource control panel
GitHub Desktopa free Git app
gh CLIPRs from the terminal
Mix themwhatever helps

Summary

Editor buttons run the same Git commands you already know. Next, scripts that run automatically when you commit.

Key takeaways
  • + is git add
  • ✓ is git commit
  • Sync is pull + push
Next up: Git Hooks — scripts that run on commit