Git is a free, open-source distributed version control system. You’ll use it to track the history of changes to your files, collaborate with others, and more!
Search for and open the app called git bash
on your computer. If this application is already installed, then skip to the next step
Once the installer begins, you’ll be presented with a series of pop-ups asking you to make some configuration choices and then press the “Next” button to continue the process. Use these notes as a guide:
main
.When installation is complete, check the “Launch GitBash” option and then click the “Finish” button
GitBash should now be an open window that looks like the image below.
We recommend that you Right Click the GitBash or Terminal icon in your task bar and choose the “Pin to Taskbar” option so that it’s easy to re-open GitBash in the future
Like artists, programmers sign their work. Let’s configure Git to sign your commits with your name and email address.
WARNING:
Before running the following commands one line at a time, use the arrow keys or backspace/delete keys on your keyboard to move your cursor.
Replace YOUR FULL NAME
and YOUR EMAIL ADDRESS
inside the single quotes with the name and email from Your GitHub Account
git config --global user.name 'YOUR FULL NAME'
git config --global user.email 'YOUR EMAIL ADDRESS'
git config --global core.editor "code --wait"
git config --global init.defaultbranch main