Files
git-practice-Asaph/GIT_ASSIGNMENT.md
2025-09-01 12:28:06 +05:30

1.3 KiB

Git Assignment

1. What is Git and Version Control

  1. Git helps multiple people work on the same files without losing each other's changes or creating a mess.
  2. Four students writing a group essay where each person writes different sections, but sometimes they need to edit the same paragraphs.
  3. Email creates confusion with multiple file versions and lost work, while Git tracks every change and lets everyone work together safely.

2. Installing Git & Configuring User Info

alt text

  1. Initializing a Repository

alt text


  1. Working Directory, Staging, and Commits

alt text


alt text


alt text

--

  1. Adding & Committing Files

alt text

alt text

Git Log (oneline)

alt text

  1. Viewing Commit Logs & Diffs

Git Log (graph)

alt text

Git Diff

alt text

git diff

alt text

Exploring Branches

alt text alt text

Cloning a Repository

alt text

Pull code from branch

alt text

alt text

Checking Remote

alt text

Ignore File