SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In Git after you add a file, it becomes
A
Committed
B
Modified
C
Staged
D
Untracked
Explanation: 

Detailed explanation-1: -git add [filename] selects that file, and moves it to the staging area, marking it for inclusion in the next commit. You can select all files, a directory, specific files, or even specific parts of a file for staging and commit. This means if you git add a deleted file the deletion is staged for commit.

Detailed explanation-2: -Staged means that you have marked a modified file in its current version to go into your next commit snapshot. Committed means that the data is safely stored in your local database.

Detailed explanation-3: -Staging is used to track new files in Git and update existing files. All file changes must be staged before they can be committed, and git add is the tool we use to add file contents into Git’s staging area. The git add command can be used to stage one file, multiple files, or stage changes in an entire directory.

Detailed explanation-4: -<filename> The name of a file (or multiple files) you want to restore. –staged. Removes the file from the Staging Area, but leaves its actual modifications untouched. –source <ref> Restores a specific revision of the file. –patch. Allows you to select individual chunks to restore.

There is 1 question to complete.