Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 644 Bytes

File metadata and controls

26 lines (22 loc) · 644 Bytes

Day 2: More Basic Commands and History

Goal: Learn more basic commands and how to view history.

  1. Make Changes and Commit:

    • Modify the README.md file.
    • Check the status and commit the changes:
      git status
      git add README.md
      git commit -m "Updated README"
  2. View History:

    • View the commit history:
      git log
  3. Create a .gitignore File:

    • Create a .gitignore file and add some files or directories to ignore.
    • Add and commit the .gitignore file:
      git add .gitignore
      git commit -m "Added gitignore file"