EMERGING TRENDS IN SOFTWARE ENGINEERING
DEVOPS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
After you initialize a new Git repository and create a file named git-quiz.html, which of the following command will be executed to commit the changes?
|
git status
|
|
git add .
|
|
git commit-m “git quiz web file added”
|
|
git add git-quiz.html
|
Explanation:
Detailed explanation-1: -The git init command creates a new Git repository. It can be used to convert an existing, unversioned project to a Git repository or initialize a new, empty repository.
Detailed explanation-2: -The git add command adds a change in the working directory to the staging area. It tells Git that you want to include updates to a particular file in the next commit.
Detailed explanation-3: -A new repo from an existing project Go into the directory containing the project. Type git init .
There is 1 question to complete.