Question: Consider the following commands and returns: [ student@host 1 0 1 me 1 stgitrepo ] $ git status On branch master No commits yet Untracked

Consider the following commands and returns:
[student@host101 me1stgitrepo]$git status
On branch master
No commits yet
Untracked files:
(use "git add ..." to include in what will be committed)
index.html
README.md
allstyle.css
index.php
search.py
nothing added to commit but untracked files present (use "git add" to track)
student@host101 me1stgitrepo]$
How can we stage these files all in one command?
Question 4 options:
Files must be staged one at at time, so we'll need to create a script.
git add --all
Both of these work.
git add -A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!