QuestionQ346

Software Development and Design

Question Image

Refer to the exhibit. A developer observes that some tasks are repeated in the development workflow. To reduce the work required, the developer creates a Bash script for use during development. The script uses messages to interact with the user and integrates with a version-control system. Which workflow does the script automate?

  • A Update the master branch with an untracked file.
  • B Push all changed files on Git with a message on a branch.
  • C Undo a commit.
  • D Push on the current branch.
Explanation

The script stages the working-tree changes with git add ., creates a commit using the user-supplied commit message, and pushes that commit to origin on the user-supplied branch. This automates committing changes with a message and pushing them to a branch.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!