- Download the Visual Studio Code installer for Windows. Use this link.
Once it is downloaded, run the installer (VSCodeUserSetup-{version}.exe). This will only take a minute.
By default, VS Code is installed under:
C:\Users\{Username}\AppData\Local\Programs\Microsoft VS Code
To download the Git installer, visit the Git's official site and go to the download page. The link for the download page is https://git-scm.com/downloads.
Click on the downloaded installer file and select yes to continue. After selecting yes, the installation begins.
Default components are automatically selected. You can also choose your required components.
The default Git command-line options are selected automatically. You can choose your preferred choice. Click next to continue.
The default transport backend options are selected. Click next to continue.
Select your required line ending option and click next to continue.
Select preferred terminal emulator and click next to continue.
This is the last step that provides some extra features like system caching, credential management, and symbolic link. Select the required features and click next.
The files are being extracted in this step.
Run the following command:
sudo apt-get updateTo install Git, run the following command:
sudo apt-get install git-coreYou may be asked to confirm the download and installation.
To confirm the installation, press the 'y' key when prompted. Once installed, verify the installation by running:
sudo git --versionTo configure Git for the first use:
sudo git config --global user.name "Your Name"
sudo git config --global user.email "your.email@example.com"Open Terminal and paste the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Run the following commands:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/$(whoami)/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"Verify Homebrew installation:
brew helpInstall Git:
brew install gitVerify Git installation:
git --versionSet your username:
git config --global user.name "Your Name"Set your email:
git config --global user.email "your.email@example.com"Set your default text editor:
git config --global core.editor "code --wait"Set the default branch name:
git config --global init.defaultBranch mainEnable colored output:
git config --global color.ui trueTo sign up for an account on GitHub.com, navigate to https://github.com/ and follow the prompts.
- Download a TOTP app of your choice to your phone or desktop.
- In the upper-right corner of any page on GitHub, click your profile photo, then click Settings.
- In the "Access" section of the sidebar, click Password and authentication.
- In the "Two-factor authentication" section of the page, click Enable two-factor authentication.
- Under "Scan the QR code", do one of the following:
- Scan the QR code with your mobile device's app. After scanning, the app displays a six-digit code that you can enter on GitHub.
- If you can't scan the QR code, click the setup key to see a code, the TOTP secret, that you can manually enter in your TOTP app.
- The TOTP application saves your account on GitHub and generates a new authentication code every few seconds. On GitHub, type the code into the field under "Verify the code from the app".
- Under "Save your recovery codes", click Download to download your recovery codes to your device. Save them to a secure location.
- After saving your two-factor recovery codes, click I have saved my recovery codes to enable two-factor authentication for your account.
- Optionally, you can configure additional 2FA methods to reduce your risk of account lockout. For more details, see GitHub's documentation.