→ This section covers essential Git commands for working with repositories, including adding, committing, pushing, pulling, and ignoring files.
⤷ Before using Git, you need to initialize a repository:
git init
⤷ Check which files are untracked, modified, or staged:
git status
⤷ Before committing changes, files need to be staged:
git add .
Stages all modified and newly created files.
You can also add specific files:
git add filename
⤷ To save staged changes into the repository:
git commit -m "commit message"