Git

Installation

Windows

Download and run the distribution from https://git-scm.com/ Git SCM to Windows

Git Usage

Some helpful commands

  • $ diff filea.py fileb.py
  • $ diff -u filea.py fileb.py
  • $ diff filea.py fileb.py // create *.diff
  • $ patch filea.py < fileb.diff
  • diff
  • patch

WSL (runing Windows Subsystem for Linux)

  • Installation
  • Issue: for AMD CPU, one needs to enable virtualization in BIOS
    • Enter BIOS setting -> Advanced CPU Settings -> enable SVM Mode
  • Install “Remote Development” extension from VS Code
  • Click on the extension icon at left-bottom and connect to WSL
  • Open the folder -> click on “Show Local”

Exercises

References