EMERGING TRENDS IN SOFTWARE ENGINEERING
DEVOPS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
checkout
|
|
merge
|
|
mv
|
|
pull
|
Detailed explanation-1: -git reset. It allows us to move both HEAD and branch pointer to a specified commit. One should be very careful while using this command as it can create irreversible changes. It will modify the pointer in the staging and working areas as well, based on the option used.
Detailed explanation-2: -This is done with the git merge command. Git merge basically integrates your feature branch with all of its commits back to the dev (or master) branch. It’s important to remember that you first need to be on the specific branch that you want to merge with your feature branch.
Detailed explanation-3: -When Bob issues the checkout command, Git creates a local copy of the MyProj repository and a working directory that contains the latest snapshot of the project files. The add commands “stages” the changes. The commit command updates Bob’s local repository to reflect the changes.
Detailed explanation-4: -The git commit command is one of the core primary functions of Git. Prior use of the git add command is required to select the changes that will be staged for the next commit. Then git commit is used to create a snapshot of the staged changes along a timeline of a Git projects history.