Adding Changes to Staging (git add)
The 'git add' command is used to add changes in your working directory to the staging area.
Usage
To add files to staging:
git add [file]
# or to stage all changes
git add .
Explanation: Replace [file] with the specific file name or use '.' to stage all changes in the current directory.
Key Takeaways
- 'git add' prepares changes for a commit by moving them to the staging area.
- You can stage individual files or all changes at once.