Q2 - Adding and Staging Files
Problem Statement
Solution
1. Add Specific Files
touch app.js style.cssgit add style.cssgit statusChanges to be committed:
(use "git restore --staged <file>..." to unstage)
new file: style.css
Untracked files:
(use "git add <file>..." to include in what will be committed)
app.js2. Interactive Staging
3. Stage All Files Except One
Last updated