QuestionQ57

VerifiedSecure, optimize, and deploy database solutions

You have a database named DB1. Its schema is stored in a GitHub repository as an SDK-style SQL database project.

You use a feature-branch workflow to deploy changes to DB1. You need to update the local feature branch with the latest changes from main, then create a pull request to merge the feature branch into main for review.

Complete the GitHub CLI script. Values may be used once, multiple times, or not at all.

Drag & Drop
git checkout feature/db1-add-staticdata


 \
--title "Feature Update: DB1" \
--body "Apply latest improvements and updates for review" \
--head feature/db1-add-staticdata \
--base main \
--repo <GitHubOwner>/DB1 \
--web
Explanation

git fetch origin updates the local repository’s remote-tracking references, and git merge origin/main merges the current remote main tip into the checked-out feature branch. gh pr create then creates a pull request with that feature branch as the head and main as the base.

Learn more

Community Discussion

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