→ This section covers essential Git commands for working with repositories, including adding, committing, pushing, pulling, and ignoring files.

1. Initializing a Git Repository

⤷ Before using Git, you need to initialize a repository:

git init

2. Checking the Status of Your Repository

⤷ Check which files are untracked, modified, or staged:

git status

3. Adding Files to the Staging Area

⤷ Before committing changes, files need to be staged:

git add .

4. Committing Changes

⤷ To save staged changes into the repository:

git commit -m "commit message"