Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 926 Bytes

File metadata and controls

36 lines (31 loc) · 926 Bytes

Day 1: Setup and Basic Commands

Goal: Set up Git and learn basic commands.

  1. Install Git:

  2. Configure Git:

    • Open your shell and set up your username and email:
      git config --global user.name "Your Name"
      git config --global user.email "your.email@example.com"
  3. Create a New Repository:

    • Create a new directory for your project and initialize a Git repository:
      mkdir git-challenge
      cd git-challenge
      git init
  4. Basic Commands:

    • Create a new file called README.md and add some text to it.
    • Check the status of your repository:
      git status
    • Add the file to the staging area:
      git add README.md
    • Commit the file:
      git commit -m "Initial commit with README"